Latest News and Blog Posts

Ruby Performance Optimization Book Is On Sale: $14.40 For eBook and $20 For Paperback!
Nov 23, 2016
Time to get the Ruby Performance Optimization book if you don't have one yet. Pragmatic Bookshelf offers 40% off all ebooks with code turkeysale2016. This brings the price from $24 down to $14.40. And Amazon has lowered the paperback price from its usual $28 down to $20. Read more... »
Ruby and Rails Performance Optimization Webcast on August 2, 2016
Jul 29, 2016
I'm doing the Ruby and Rails performance optimization webcast at O'Reilly on Tue, August 2, 2016 at 10am PT. I'll talk about the performance optimization strategies in general, practical tips and tricks, and answer your questions. Read more... »
Ruby Performance Optimization Book Is On Sale: 40% Off eBook and 23% Off Paper Book
Jul 14, 2016
Today is a great day to get my Ruby Performance Optimization book. Pragmatic Bookshelf gives 40% off all ebooks with code XMASJULY2016. This brings the price down to $14.40. And Amazon has the paper book on sale for only $27.84. Read more... »
Ruby Frozen String Literals Do Not Result in Any Performance Improvement
Apr 06, 2016
Frozen string literals is the experimental feature that appeared in Ruby 2.3 and will become the default behavior in Ruby 3.0. There's been some talk about how that improves performance. A month ago I ported one of my applications and saw no improvement. Today took another look, and my conclusion still stands. Read more... »
$6 Discount on Ruby Performance Optimization Book (Paperback) Today on Amazon
Feb 27, 2016
Amazon sells my book today for $30 ($6 off). I just found this myself by accident. Given the unpredictable nature of Amazon, you'd better hurry up and get your book while the sale is still on. Read more... »

Most Popular Blog Posts

Is Ruby 2.3 Faster? Rails ERB Template Rendering Performance
Why Read the Ruby Performance Optimization Book
Ruby Performance Optimization Book Is In Print

See all blog posts

Here's What Readers Say About the Book

This book is a must-have for anyone bringing performance-sensitive Ruby programs to production. It will teach you how to efficiently hunt down and correct the bottlenecks that make users sad and prevent teams from spending time building new functionality. Matt Margolis, Director of application development, Getty Images

A fantastic book. Probably the best tech book I have read in the last few years. It brings together information I can’t just find in 30 minutes of web searches. This book has taught me to be a better developer and to start filling a hole in my skill set. Charley Stran, Web developer, TheBlaze | Mercury Radio Arts

Ruby Performance Optimization has changed the way I develop. I now think about simple performance tweaks before I commit code. It is a book I keep close for reference when solving tough performance issues. Jeff Holland, Senior software engineer, Ackmann & Dickenson

For programmers who aren’t familiar with what is going on "under the covers," I think this book will open their eyes to new levels of understanding their code. Kim Shrier, Principal, Westryn Internet Services, Shrier and Deihl

About the Ruby Performance Optimization Book

From this book you will learn to:

Ruby Performance Optimization is the first book on Ruby performance that actually teaches performance optimization and is not a mere collection of tips and tricks.

No need to dig through the various blog posts, screencasts, and conference presentation recordings anymore! Everything that's important is in the book. It does not describe any of the microoptimizations (like inlining to get rid of the function call), and features only one chapter on performance tips and tricks. Other chapters concentrate on what's really important for performance: reducing high memory utilization, profiling CPU and memory, reducing the garbage collector's load.

Frequently Asked Questions

Shall I Read This Book If I Only Do Rails?

Definitely! I learned Ruby performance optimization myself by trying to speed up Rails applications. So you can expect that all advice I have actually applies to Rails. More, Chapter 3 of the book specifically focuses on making Rails faster.

Is Your Book Still Relevant for Ruby 2.3?

Of course. I wrote this book when Ruby 2.2 was the current version. Ruby 2.3 is a bit faster overall and has an improved iterator implementation (my advice from Section 2.2 does not apply anymore). But it's still largerly the same Ruby as 2.2 and 2.1. So you can expect 99% of the material of the book to be applicable to Ruby 2.3.

Buy Now