Espruino's fixed-size JsVar blocks were designed for this, but it was never implemented.
You'd have to change jsVarCache, jsvLock and jsvUnLock, and then store only the most-used (and locked) JsVars in RAM - writing the rest onto the SD card. Probably quite a lot of work, but it'd be epic.
It would kill Garbage Collection speed (it might need a re-write?) but then if you had basically infinite memory that's not a huge issue.
The text was updated successfully, but these errors were encountered: