buzz
buzz copied to clipboard
Chunk cache
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.