Skip to content

nRF Port: Enable @micropython.native, @micropython.viper and @micropython.asm_thumb #1248

@urish

Description

@urish

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions