Skip to content
Snippets Groups Projects
Commit 0779693c authored by Damien George's avatar Damien George
Browse files

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.
parent 8ce22662
Branches
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment