« See all posts

Why Read the Ruby Performance Optimization Book

Posted by Alexander Dymo on December 15, 2015

Programmers like Ruby language for the speed of development, readability of the code, and the large amount of tools built by the community. But not everything in the garden is rosy.

Ruby applications are slow. There was a time when developers hoped that faster language interpreter will fix that. These days the interpreter is fast, but the performance is still poor.

So what's the real reason why Ruby is slow, and how to optimize it?

I've learned the answers to these questions by optimizing Ruby programs for the last 8 years. And in this book, I'd like to share everything I know with you.

The book starts by explaining why high memory consumption and slow garbage collection are the primary reasons why Ruby code slow.

In the next two chapters, you'll learn the memory-saving tips and tricks that give you up to 10x speedup in no time.

You'll find there both generic, and Rails specific optimization techniques. These you should be able to to apply to your own code right away.

Chapters 4 to 6 cover everything you need to know when optimization tips and tricks don't work. You'll learn how to profile, identify the source of the slowness, and optimize with the profiler.

In chapters 7 and 8 I'll show you how to make sure the performance does not degrade after optimization. You'll learn how to benchmark, compare benchmark results, and write performance tests.

Finally, you'll learn how to tune up the execution environment, and the Ruby garbage collector for optimal performance.

So, grab your copy of the book, and let's optimize.

Did you like this post? Follow me on Twitter or Google+ to stay updated on Ruby performance optimization news.

Next: Is Ruby 2.3 Faster? Nested Iterator Performance
Previous: Ruby Performance Optimization Book Is In Print