Making ActiveRecord 2x faster
TL;DR: AdequateRecord is a set of patches that adds cache stuff to make ActiveRecord 2x faster
I really enjoy learning new things in my free time. Lately I’ve been studying this book on Static Program Analysis . The book is very good, but some of the formulas are quite dense so I like to try writing them out in code.
Visit tenderlovemaking.com → RSS feedOn Hacker News Jul 2012 – Sep 2026
Software Engineering 8Tools & Productivity 3Systems & Performance 2Databases & Data 2Web & Frontend 1Security & Privacy 1
TL;DR: AdequateRecord is a set of patches that adds cache stuff to make ActiveRecord 2x faster
In a previous post, I wrote a bit about how Ruby objects are laid out in memory. Today we’ll use that information to write a program that will allow us to take a Ruby heap dump and visualize the layout and fragmentation of that heap. Ruby Object Layout Recap Just as a recap, Ruby objects are fixed width. That is…