Tested new version(1v81.705) immediately :-)
For websocket SHA1 is needed, this was my choice to compare benefit:
old SHA1 duration was 1390ms and process.memory().free after calling was 735
after a lot of changes it's 1047ms and 823 blocks are free
now with new firmware version it takes 1290ms and 866 blocks are free
So for this function it uses less memory (20%) and is slower (20%), interesting result.
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.
Tested new version(1v81.705) immediately :-)
For websocket SHA1 is needed, this was my choice to compare benefit:
So for this function it uses less memory (20%) and is slower (20%), interesting result.