esp8266: Enable frozen bytecode, with scripts in modules/ subdir.

To start with, the critical scripts _boot.py and flashbdev.py are frozen
to improve performance and reduce RAM consumption.

Saves about 1000 bytes of heap RAM for a bare boot with filesystem.
This commit is contained in:
Damien George
2016-05-11 16:57:29 +01:00
parent b9e3fde21a
commit db80c0ed46
4 changed files with 20 additions and 0 deletions

9
esp8266/modules/_boot.py Normal file
View File

@@ -0,0 +1,9 @@
import uos
from flashbdev import bdev
try:
if bdev:
vfs = uos.VfsFat(bdev, "")
except OSError:
import inisetup
vfs = inisetup.setup()