3 ms·
Well, you don't need to fall back on hearsay. The code is on github. It is a good read. Micropython is, in fact, extremely parsimonious with memory in it's n
by dbcurtis 9y ago
Well, you don't need to fall back on hearsay. The code is on github. It is a good read.
Micropython is, in fact, extremely parsimonious with memory in it's native state, and you have reasonable options to get even tighter if you like, at the expense of portability.
As it is, most of Micropython's portability quirks come from trading off 100% CPython compatibility to achieve a small SRAM footprint.
Micropython byte code is not particularly fast in an absolute sense, but is very good all things considered in the context of a microcontroller. I find for really performance critical stuff a few lines of inline asm (which Micropython supports natively) often is sufficient. And for the rest, a C module is always an option.