and btw the lines 340-355 could be moved out of the function and precomputed earlier? that could break the reference to the uncompressed data.
Also are you aware that on line 339 you define new function for each cycle of the loop? so you get many duplicated function definitions, can you define function once earlier and just reuse it there (and just pass j into it as a parameter or whatever is needed)?
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.
and btw the lines 340-355 could be moved out of the function and precomputed earlier? that could break the reference to the uncompressed data.
Also are you aware that on line 339 you define new function for each cycle of the loop? so you get many duplicated function definitions, can you define function once earlier and just reuse it there (and just pass
j
into it as a parameter or whatever is needed)?