Yes @fanoush - that was one of my initial suggestions - it could definitely be worth a try... On Bangle.js I don't even use SPI1 for anything :)
The latest changes are no committed to Git so you should see some decent improvements.
The speed difference could well be the new GCC - probably the optimise for size uses some slightly different heuristics.
But yes, if you see other optimisation improvements I'm definitely interested!
Especially in drawImage(s) we have some fasts paths for drawing, but if you don't hit them then the unpacking of bitmap data isn't that fast and could probably be improved using a pointer to a decode function.
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.
Yes @fanoush - that was one of my initial suggestions - it could definitely be worth a try... On Bangle.js I don't even use SPI1 for anything :)
The latest changes are no committed to Git so you should see some decent improvements.
The speed difference could well be the new GCC - probably the optimise for size uses some slightly different heuristics.
But yes, if you see other optimisation improvements I'm definitely interested!
Especially in drawImage(s) we have some fasts paths for drawing, but if you don't hit them then the unpacking of bitmap data isn't that fast and could probably be improved using a pointer to a decode function.