Minifying is nice, bumped on github a javascript string compressor http://pieroxy.net/blog/pages/lz-string/demo.html which compress the minified (on a PC the 830 bytes becomes 322 bytes net).
The original code is 1788 bytes compressed to 498 bytes.
Serial links are slow, so the MCU got time to decompress with this kind of option.
More bang for the memory buck, and probably more throughput in serial links?
It also makes the original JS code probably closer to a compiled C code, which would be used for speed?
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.
Minifying is nice, bumped on github a javascript string compressor http://pieroxy.net/blog/pages/lz-string/demo.html which compress the minified (on a PC the 830 bytes becomes 322 bytes net).
The original code is 1788 bytes compressed to 498 bytes.
Serial links are slow, so the MCU got time to decompress with this kind of option.
More bang for the memory buck, and probably more throughput in serial links?
It also makes the original JS code probably closer to a compiled C code, which would be used for speed?