diff options
author | Damien George <damien.p.george@gmail.com> | 2015-02-08 01:57:40 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-02-08 01:57:40 +0000 |
commit | 7d414a1b52d193bab2c94cf56932e1eba23ba542 (patch) | |
tree | 69f6840e4f825ffc1047fe7cb0f52eba27b20d86 /py/nativeglue.c | |
parent | 5f97aaeca4dc607a2d32e758c3ef6131ffb168a6 (diff) | |
download | micropython-7d414a1b52d193bab2c94cf56932e1eba23ba542.tar.gz micropython-7d414a1b52d193bab2c94cf56932e1eba23ba542.zip |
py: Parse big-int/float/imag constants directly in parser.
Previous to this patch, a big-int, float or imag constant was interned
(made into a qstr) and then parsed at runtime to create an object each
time it was needed. This is wasteful in RAM and not efficient. Now,
these constants are parsed straight away in the parser and turned into
objects. This allows constants with large numbers of digits (so
addresses issue #1103) and takes us a step closer to #722.
Diffstat (limited to 'py/nativeglue.c')
-rw-r--r-- | py/nativeglue.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/py/nativeglue.c b/py/nativeglue.c index 43e7d699ff..14638d4eff 100644 --- a/py/nativeglue.c +++ b/py/nativeglue.c @@ -91,8 +91,6 @@ void mp_native_raise(mp_obj_t o) { void *const mp_fun_table[MP_F_NUMBER_OF] = { mp_convert_obj_to_native, mp_convert_native_to_obj, - mp_load_const_int, - mp_load_const_dec, mp_load_const_str, mp_load_const_bytes, mp_load_name, |