RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Curiosity reduced the heap size by 60%

https://mostlyobvio.us/2026/07/curiosity-reduced-the-heap-size-by-60/

A stray Ruby warning spotted while running specs: “redefining ‘object_id’ may cause serious problems”, led down a rabbit hole into opentelemetry-instrumentation-aws_sdk and a pinned, ageing aws-sdk v2. The install hook was force-loading all AWS service classes at boot, just to check which ones were actually in use. One small monkey-patch later: 220 fewer services loaded, 60% fewer classes in the VM, heap nearly halved and boot time down 36%.

A nice case for staying curious and fixing what you notice along the way, even when it’s not on your main path.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in