4 Ruby methods that are an order of magnitude faster, and 22 other optimizations
Juanito Fatas’ fast-ruby benchmarks are a great collection of insights into the performance tradeoffs of the different ways Ruby let’s you skin a cat (or shave a yak). Sometimes it’s possible to achieve amazing increases in speed without sacrificing any readability in your code thanks to the last 2 decades the core Ruby team has spent optimizing common patterns.
Post a comment