In Erik Michaels-Ober's great talk, 'Writing Fast Ruby': Video @ Baruco 2014, Slide, he presented us with many idioms that lead to faster running Ruby code. He inspired me to document these to let more people know. I try to link to real commits so people can see that this can really have benefits in the real world. This does not mean you can always blindly replace one with another. It depends on the context (e.g. gsub versus tr). Friendly reminder: Use with caution!

Each idiom has a corresponding code example that resides in code.

All results listed in README.md are running with Ruby 2.2.0p0 on OS X 10.10.1. Machine information: MacBook Pro (Retina, 15-inch, Mid 2014), 2.5 GHz Intel Core i7, 16 GB 1600 MHz DDR3. Your results may vary, but you get the idea. : )

You can checkout the travis build for these benchmark results ran against different Ruby implementations.

Code Quality Rank: L5
Programming language: Ruby

fast-ruby alternatives and related gems

Based on the "Coding Style Guides" category

Do you think we are missing an alternative of fast-ruby or a related project?

Add another 'Coding Style Guides' Gem

fast-ruby Recommendations

There are no recommendations yet. Be the first to promote fast-ruby!

Have you used fast-ruby? Share your experience. Write a short recommendation and fast-ruby, you and your project will be promoted on Awesome Ruby.
Recommend fast-ruby

Recently added fast-ruby resources

Do you know of a useful tutorial, book or news relevant to fast-ruby?
Be the first to add one!