I'm working flat out at the moment and I'm afraid I just don't have time to work on getting the best memory usage for anything except the Espruino Board.
If someone wanted to contribute code then that would be great though - there are a bunch of outstanding issues on GitHub that would help with memory usage.
In your case the 48 bytes of extra memory usage is probably because memory() is now wrapped in process - so unless you check how much memory you have it won't make any difference at all.
Realistically though, the VL doesn't have much RAM and it's always going to be a struggle to get much code in. I believe the Web IDE will now automatically minify code, which could really help though.
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.
I'm working flat out at the moment and I'm afraid I just don't have time to work on getting the best memory usage for anything except the Espruino Board.
If someone wanted to contribute code then that would be great though - there are a bunch of outstanding issues on GitHub that would help with memory usage.
In your case the 48 bytes of extra memory usage is probably because
memory()
is now wrapped inprocess
- so unless you check how much memory you have it won't make any difference at all.Realistically though, the VL doesn't have much RAM and it's always going to be a struggle to get much code in. I believe the Web IDE will now automatically minify code, which could really help though.