You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These decorators are immensely useful - they allow optimizing hot paths in the code and remove performance bottlenecks.
I conducted a little research yesterday, and it seems like these decorators work pretty well. I was able to speed up a piece of code by a factor of two just by decorating it with @micropython.native, and then with viper, I got it to run 10 times faster.
I also experimented with @micropython.asm_thumb, and after sending a PR to fix a few build issues (#1244), I was able to successfully run Thumb code inside python that would blink an LED on the nRF52840 dongle.