Rails Performance Gems and Tricks

Reading time: 1 min

A small collection of gems and tricks I use for measuring and enhancing a Rails app performance. I’ll keep this post updated with new gems and tricks :)



This tip is incredible! It just uses a Rack stdlib to compress your HTML.

Add the config.middleware.insert_after ActionDispatch::Static, Rack::Deflater line on your config/application.rb, and voilà!

Ruby memory allocation can be tricky, as this post is a very deep analysis on what’s going on behind the curtains.