Testing Frozen String Literals in Production
intertwingly.net·11h·
Flag this post

Testing Frozen String Literals in Production


2025-10-15T12:48:14Z

My Showcase application runs as a multi-tenant Rails app on Fly.io, where each ballroom dance event runs as a separate Rails instance with its own SQLite database. This makes it easy to run controlled experiments.

Having seen success with jemalloc and cgroups, it is time to look at the application itself. The first thing I looked at was frozen strings.

The theory was compelling: with frozen string literals enabled, identical string constants could be shared, reducing overall memory consumption.

The Experiment

Phase 1: Loc…

Similar Posts

Loading similar posts...