Hacker News new | ask | show | jobs
by Aearnus 2385 days ago
> Why not cache the compiled methods to make warmup a once-per-version delay? It would be a JIT/precompiled hybrid. Call it gradually compiled.

That's what Bootsnap does, and it now comes standard with Rails. https://github.com/Shopify/bootsnap

1 comments

Nope, that's not what Bootsnap does. Bootsnap caches the pre-parsed .rb files as ISEQs (bytecode buffers.) It's conceptually a bit similar but not the same.