Reducing Ruby Memory Overhead with frozen_string_literal
Learn how to use the frozen_string_literal pragma in Ruby to reduce memory allocations and improve GC performance while avoiding FrozenError crashes.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to use the frozen_string_literal pragma in Ruby to reduce memory allocations and improve GC performance while avoiding FrozenError crashes.
Learn how to eliminate full-page reloads in Ruby on Rails using Turbo Frames to create a snappier, SPA-like experience without leaving the server-side ecosystem.
To minimize infrastructure costs for low-traffic workloads, Ruby on Rails applications often utilize a single-process, multi-threaded Puma configuration. This approach aims to reduce the total RAM footprint by avoiding the overhead of multiple worker processes. However, there is uncertainty regarding the relationship between thread count and memory bloat whe