-
Book Overview & Buying
-
Table Of Contents
Polished Ruby Programming - Second Edition
By :
In this chapter, you learned all about optimization in Ruby. You learned that you should only optimize if you have identified a bottleneck in your application. You learned that you should profile and benchmark a specific use case before attempting to optimize the use case, so you can test that your optimization actually improved performance. Next, you learned that the best way to improve performance is by running the least amount of code possible. You learned some techniques for optimizing when the profile output isn't helpful in alerting you to the cause of the performance issue in your code. You learned about shape-friendly code, and the trade-offs involved in using it. You learned how to enable Ruby's JIT compilers to speed up the performance of your code. Finally, you learned about Spinel, a recently released tool that can compile a subset of Ruby to native executables.
Change the font size
Change margin width
Change background colour