Skip to main content

Impractical Ruby Optimisations

ยท One min read

Wrote an article exploring some unconventional performance optimizations in Ruby.

It uses building an event bus for Rage as a case study to dig into:

  • Profiling
  • Implicit and explicit string conversions
  • Unexpected performance bottlenecks using hashes
  • When micro-optimizations actually matter (and when they don't)

The title says "impractical" because most of these techniques aren't worth applying in typical application code. But they're interesting to understand, and they matter when you're building framework-level code where small improvements compound.

Impractical Ruby Optimisations