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 :)
Rack::Deflater (Original post. Thanks Schneeman!)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à!
MALLOC_ARENA_MAX if you have memory bloat (Original post. Thanks Nate!)Ruby memory allocation can be tricky, as this post is a very deep analysis on what’s going on behind the curtains.