diff options
author | Damien George <damien.p.george@gmail.com> | 2019-03-01 14:33:03 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-03-05 16:32:05 +1100 |
commit | 4f0931b21f72be86aae22f05b718aa36792afc9b (patch) | |
tree | 6ed029f6bc5ef4ee9b125f50e7795220232d5f14 /py/compile.c | |
parent | 992a6e1deab06aba07ab09687402d39a0c028a73 (diff) |
py/persistentcode: Define static qstr set to reduce size of mpy files.
When encoded in the mpy file, if qstr <= QSTR_LAST_STATIC then store two
bytes: 0, static_qstr_id. Otherwise encode the qstr as usual (either with
string data or a reference into the qstr window).
Reduces mpy file size by about 5%.
Diffstat (limited to 'py/compile.c')
0 files changed, 0 insertions, 0 deletions