diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-10-21 11:06:32 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-10-21 11:06:32 +0300 |
commit | 9956fd0710c3866b9df37857c9aa62b8bb681403 (patch) | |
tree | d3b2a944aeb95396ee45403833c7bc4f46365cc6 /py/runtime.h | |
parent | f2baa9ec245a66c4cd7d990e39a4af3f6fab1cb7 (diff) |
py/objtype: Fit qstrs for special methods in byte type.
Update makeqstrdata.py to sort strings starting with "__" to the beginning
of qstr list, so they get low qstr id's, guaranteedly fitting in 8 bits.
Then use this property to further compact op_id => qstr mapping arrays.
Diffstat (limited to 'py/runtime.h')
-rw-r--r-- | py/runtime.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/runtime.h b/py/runtime.h index d410b5614..9c1921cb5 100644 --- a/py/runtime.h +++ b/py/runtime.h @@ -57,8 +57,8 @@ typedef struct _mp_arg_t { } mp_arg_t; // Tables mapping operator enums to qstrs, defined in objtype.c -extern const uint16_t mp_unary_op_method_name[]; -extern const uint16_t mp_binary_op_method_name[]; +extern const byte mp_unary_op_method_name[]; +extern const byte mp_binary_op_method_name[]; void mp_init(void); void mp_deinit(void); |