You are reading a single comment by @Andreas_Rozek and its replies.
Click here to read the full conversation.
-
variables declared outside of functions are called "globals" here
sorry, that's probably wrong, I mean outer scope , outside of native method, in this case it is global scope
>global.computeDiffusion =function () { ... } >global.Display =new Uint8ClampedArray(768) >
https://www.espruino.com/Compilation#performance-notes
If you access global variables ...EDIT: also there is generic performance page, it is there too
https://www.espruino.com/Performance#some-variable-lookups-are-faster-than-others
This is indeed an interesting outcome (although I had to learn that variables declared outside of functions are called "globals" here)
Thank you very much for your effort!