compile vs freeze module (with esp32 spiram support enabled)
Posted: Thu Nov 04, 2021 2:44 pm
I've always used the already compiled micropython firmware for esp32 with spiram support.
I investigated the possibility of improving the performance of the microcontroller (ESP32 WROVER) by compiling modules with mpy-cross and/or including (?freezing?) them into the whole micropython firmware.
1. what's the difference in terms of performance between importing a complied module or including it in the firmware?
2. Is the module code visible in any of the two cases?
3. while compiling a module is relatively easy following this guide, I couldn't find an up-to-date, easy to follow guide for including modules inside the firmware, with SPIRAM enabled. Could someone link to such a resource and/or help me with the necessary operations to obtain a micropython firmware with SPIRAM enabled and a custom module frozen inside it?
Thank you
I investigated the possibility of improving the performance of the microcontroller (ESP32 WROVER) by compiling modules with mpy-cross and/or including (?freezing?) them into the whole micropython firmware.
1. what's the difference in terms of performance between importing a complied module or including it in the firmware?
2. Is the module code visible in any of the two cases?
3. while compiling a module is relatively easy following this guide, I couldn't find an up-to-date, easy to follow guide for including modules inside the firmware, with SPIRAM enabled. Could someone link to such a resource and/or help me with the necessary operations to obtain a micropython firmware with SPIRAM enabled and a custom module frozen inside it?
Thank you