diff options
author | Damien George <damien.p.george@gmail.com> | 2019-03-01 14:03:10 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-03-05 16:27:34 +1100 |
commit | 992a6e1deab06aba07ab09687402d39a0c028a73 (patch) | |
tree | d1b94a56f39b0fa04cfe3e82aafaf65a243d4ab8 /py/bc.h | |
parent | 5996eeb48fa6ce773003eacbc7e0b52ad5cc4d31 (diff) |
py/persistentcode: Pack qstrs directly in bytecode to reduce mpy size.
Instead of emitting two bytes in the bytecode for where the linked qstr
should be written to, it is now replaced by the actual qstr data, or a
reference into the qstr window.
Reduces mpy file size by about 10%.
Diffstat (limited to 'py/bc.h')
-rw-r--r-- | py/bc.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -114,7 +114,7 @@ const byte *mp_bytecode_print_str(const byte *ip); #define MP_OPCODE_VAR_UINT (2) #define MP_OPCODE_OFFSET (3) -uint mp_opcode_format(const byte *ip, size_t *opcode_size); +uint mp_opcode_format(const byte *ip, size_t *opcode_size, bool count_var_uint); #endif |