Hacker News new | ask | show | jobs
by maxime_cb 1202 days ago
For anyone curious, we've been working to reduce the memory overhead and have added some stats to keep track of memory usage over time. On this graph, you can see a comparison with the CRuby interpreter:

https://speed.yjit.org/memory_timeline#railsbench

1 comments

What happened on jun 14? (the dramatic drop in memory usage)

Edit: I guess this (https://github.com/ruby/ruby/pull/5944) PR was merged.

Yes. Prior to that point we used to allocate a large chunk of executable memory upfront. We switched to mapping that memory on demand, and that alone was a huge improvement.