#812 — August 6, 2026 Read on the Web Ruby Weekly Shrinking Ruby Hashes — Hash uses 2-4x the memory of a Struct holding the same data. Ruby committer Jean Boussier digs into why, looking at the layout changes from Ruby 2.3 to now, and shows off the patches that could shrink small hashes in Ruby 4.
