buzz icon indicating copy to clipboard operation
buzz copied to clipboard

Chunk cache

Open giann opened this issue 2 months ago • 0 comments

Chunks (and so constants), should be serializable. We could then keep a cache of it so that several execution of the same script doesn't trigger a full parsing/codegen each time.

Deserializing should be trivial otherwise we lose any advantage over actually parsing the script.

Maybe do something akin to what Richard Feldman was talking about here: https://youtu.be/w74rC-6caxE?si=SbimULSMDWSM-_FX Reducing to a minimum the use of pointers and use indices to collocated memory.

giann avatar Oct 18 '25 06:10 giann