You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • I'm just trying this here and I don't actually see any increase in usage...

    What if you run process.memory().usage? By specifying false as an argument you're telling Espruino not to garbage collect, so the usage will tend to go up over time anyway - but that's not a big deal as when garbage collection runs it goes back down.

    If you do just process.memory() then a GC pass is done first, so you're always looking at the amount of memory your code is really using.

About

Avatar for Gordon @Gordon started