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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help