You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • 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.

About

Avatar for Gordon @Gordon started