diff options
author | Damien George <damien.p.george@gmail.com> | 2019-10-10 15:30:16 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-10-15 16:56:27 +1100 |
commit | 23f0691fddfc35acd2f81f54b15ad2ecaa15c6d4 (patch) | |
tree | d8aa64136f0e5d6437e825835a08b985c9593f55 /docs/esp8266/tutorial/filesystem.rst | |
parent | 858e992d2e25cf50b06abc33978040092e6f1e16 (diff) | |
download | micropython-23f0691fddfc35acd2f81f54b15ad2ecaa15c6d4.tar.gz micropython-23f0691fddfc35acd2f81f54b15ad2ecaa15c6d4.zip |
py/persistentcode: Make .mpy more compact with qstr directly in prelude.
Instead of encoding 4 zero bytes as placeholders for the simple_name and
source_file qstrs, and storing the qstrs after the bytecode, store the
qstrs at the location of these 4 bytes. This saves 4 bytes per bytecode
function stored in a .mpy file (for example lcd160cr.mpy drops by 232
bytes, 4x 58 functions). And resulting code size is slightly reduced on
ports that use this feature.
Diffstat (limited to 'docs/esp8266/tutorial/filesystem.rst')
0 files changed, 0 insertions, 0 deletions