Table of Contents
Preface |
The Need for Speed |
How to Read This Book |
Acknowledgments |
1. | What Makes Ruby Code Fast |
What Makes Ruby Code Slow |
Optimize Memory |
Get Into the Performance Mind-set |
2. | Fix Common Performance Problems |
Save Memory |
Optimize Your Iterators |
Write Less Ruby |
Takeaways |
3. | Make Rails Faster |
Make ActiveRecord Faster |
Make ActionView Faster |
Takeaways |
4. | Profile |
Measure with Ruby-Prof |
Visualize with Ruby-Prof Printers |
Visualize with KCachegrind (QCachegrind) |
Takeaways |
5. | Learn to Optimize with the Profiler |
Optimize but Don’t Break |
Pick Low-Hanging Fruit |
Take a Step Back |
Takeaways |
6. | Profile Memory |
Detect Excessive Memory Usage |
Profile Memory with Ruby-Prof |
Measure Memory Yourself with GC#stat and GC::Profiler |
Takeaways |
7. | Measure |
Minimize External Factors |
Make Internals ... |
Get Ruby Performance Optimization now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.