If your memory usage sticks at the same number, you could be pretty sure that there are no leaks...
I'd be pretty certain it was the readFile of the large file that was causing you problems. Sadly 48kB doesn't get you far when you start dealing with files :)
There's a bit of info in http://www.espruino.com/Performance about how the JsVars work. Because memory is stored in blocks, you don't get 100% usage as 4 bytes of each block end up getting used for housekeeping information.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
If your memory usage sticks at the same number, you could be pretty sure that there are no leaks...
I'd be pretty certain it was the
readFile
of the large file that was causing you problems. Sadly 48kB doesn't get you far when you start dealing with files :)There's a bit of info in http://www.espruino.com/Performance about how the JsVars work. Because memory is stored in blocks, you don't get 100% usage as 4 bytes of each block end up getting used for housekeeping information.