summaryrefslogtreecommitdiff
path: root/py/opmethods.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-02-27 00:10:04 +1100
committerDamien George <damien.p.george@gmail.com>2019-03-01 15:22:46 +1100
commit0779693c23fcc55993a06e4e0adf30a3d41f90f5 (patch)
tree7f80921f2b287bad50173f031a611b323fdab78c /py/opmethods.c
parent8ce22662feadeb6b564f1087134346cb287251f0 (diff)
py/compile: Add optimisation to compile OrderedDict inplace.
This optimisation eliminates the need to create a temporary normal dict. The optimisation is enabled via MICROPY_COMP_CONST_LITERAL which is enabled by default (although only has an effect if OrderdDict is enabled). Thanks to @pfalcon for the initial idea and implementation.
Diffstat (limited to 'py/opmethods.c')
0 files changed, 0 insertions, 0 deletions