Slow code needed! #6737
Unanswered
gfwilliams
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2023-10-09 by @gfwilliams
Occasionally I take some time to run code to benchmark Espruino. I profile it and then really dive into the machine code that is executed in the hot spots to see if I can make improvements - on Friday I managed to get minified JS code running about 10% faster.
However, I'm aware that the code I use for this benchmarking isn't very representative - it's just loops with maths like https://github.com/espruino/Espruino/blob/master/benchmark/mandelbrot.js or https://github.com/espruino/Espruino/blob/master/benchmark/donut.js
So... does anyone have any code that they've written in the course of developing with Espruino that ran quite slowly, and that they can split off into a small (<50 line) bit of code?
It could be part of a Bangle.js watch face or game, or some code that's running on some other Espruino device.
If I could get a few different things together then next time I run through looking for ways to make Espruino faster, I might be able to improve things that have more of a real-life effect on performance.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions