By Alexander Dymo
You should not have to just accept gradual Ruby or Rails functionality. during this entire consultant to Ruby optimization, you will write speedier Ruby code--but that is just the start. See precisely what makes Ruby and Rails code gradual, and the way to mend it. Alex Dymo will consultant you thru perils of reminiscence and CPU optimization, profiling, measuring, functionality checking out, rubbish assortment, and tuning. you can find that each one these "hard" issues are usually not so tough in any case, and your code will run orders of significance faster.
This is the 1st e-book ever that consolidates the entire Ruby functionality optimization suggestion in a single position. it is your entire consultant to reminiscence optimization, CPU optimization, rubbish collector tuning, profiling, measurements, functionality trying out, and more.
You'll move from functionality rookie to specialist. First, you will research the simplest practices for writing Ruby code that is effortless not just at the CPU, but additionally on reminiscence, and that does not set off the feared rubbish collector. you will find out that rubbish assortment bills for eighty% of slowdowns, and infrequently takes greater than 50% of your program's execution time. and you can become aware of the bottlenecks in Rails code and find out how selective characteristic loading and preloading can mitigate the functionality bills of ActiveRecord.
As you enhance to Ruby functionality specialist, you will find out how profile your code, how you can make experience out of profiler reviews, and the way to make optimization judgements in line with them. you will confirm sluggish code does not creep again into your Ruby program through writing functionality checks, and you may study how one can benchmark Ruby.
And ultimately, you are going to dive into the Ruby interpreter internals to actually comprehend why rubbish assortment makes Ruby so sluggish, and the way you could track it up.
What You Need:
Some model of Ruby. the recommendation from this publication applies to all smooth Ruby models from 1.9 to 2.2. eighty% of the fabric can be priceless for legacy Ruby 1.8 clients, and there's 1.8-specific suggestion as well.