summaryrefslogtreecommitdiffstatshomepage
path: root/py/objnone.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-11-01 13:16:16 +1100
committerDamien George <damien.p.george@gmail.com>2017-11-01 13:16:16 +1100
commit487dbdb26748b86cf247600af187437310311145 (patch)
tree4b01d33357ced617a5e4af54845174d9e16ef42b /py/objnone.c
parentfe45d78b1edd6d2202c3544797885cb0b12d4f03 (diff)
downloadmicropython-487dbdb26748b86cf247600af187437310311145.tar.gz
micropython-487dbdb26748b86cf247600af187437310311145.zip
py/compile: Use alloca instead of qstr_build when compiling import name.
The technique of using alloca is how dotted import names are composed in mp_import_from and mp_builtin___import__, so use the same technique in the compiler. This puts less pressure on the heap (only the stack is used if the qstr already exists, and if it doesn't exist then the standard qstr block memory is used for the new qstr rather than a separate chunk of the heap) and reduces overall code size.
Diffstat (limited to 'py/objnone.c')
0 files changed, 0 insertions, 0 deletions