I don't know about Espruino, but in every JS interpreter I've come accross, parseInt is extremely slow. @Gordon could you confirm that Number(a.toFixed(0)).toString(16) is magnitudes faster than parseInt(a).toString(16)? I cannot test yet, since I am still waiting for my boards :)
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 don't know about Espruino, but in every JS interpreter I've come accross,
parseInt
is extremely slow. @Gordon could you confirm thatNumber(a.toFixed(0)).toString(16)
is magnitudes faster thanparseInt(a).toString(16)
? I cannot test yet, since I am still waiting for my boards :)