

Alexander Dymo is an entrepreneur, YCombinator alum, free software developer, and book author.
Meer over Alexander DymoRuby Performance Optimization
Why Ruby is Slow, and How to Fix It
Samenvatting
You don't have to accept slow Ruby or Rails performance. In this comprehensive guide to Ruby optimization, you'll discover exactly what makes Ruby and Rails code slow, and how to fix it. You’ll master memory and CPU optimization, profiling, measuring, performance testing, garbage collection, and tuning.
You'll go from performance rookie to expert. First, you'll learn the best practices for writing Ruby code that's easy not only on the CPU and memory, but also on memory, and that doesn't trigger the dreaded garbage collector. You’ll discover the bottlenecks in Rails code and learn how selective attribute loading and preloading can mitigate the performance costs of ActiveRecord.
You'll profile your code, make sense out of profiler reports, and make optimization decisions based on them. You'll write performance tests, and you'll learn the right way to benchmark Rails.
Your code will run orders of magnitude faster.
Specificaties
Inhoudsopgave
1. What makes Ruby Code fast
2. Fix common performance problems
3. Make Rails faster
4. Profile
5. Learn to optimize with the Profiler
6. Profile Memory
7. Measure
8. Test Performance
9. Think outside the box
10. Tune up the garbage collector
Index