summaryrefslogtreecommitdiff
path: root/py/compile.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-03-01 14:33:03 +1100
committerDamien George <damien.p.george@gmail.com>2019-03-05 16:32:05 +1100
commit4f0931b21f72be86aae22f05b718aa36792afc9b (patch)
tree6ed029f6bc5ef4ee9b125f50e7795220232d5f14 /py/compile.c
parent992a6e1deab06aba07ab09687402d39a0c028a73 (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