diff options
author | Damien George <damien.p.george@gmail.com> | 2016-09-19 08:46:01 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-09-19 12:28:03 +1000 |
commit | adaf0d865cd6c81fb352751566460506392ed55f (patch) | |
tree | 0a944ff133a34b0f9ee4c6411144b049fd0ebf52 /py/lexer.c | |
parent | a5624bf3818c573611b2b7bfc755e27de97f64e4 (diff) | |
download | micropython-adaf0d865cd6c81fb352751566460506392ed55f.tar.gz micropython-adaf0d865cd6c81fb352751566460506392ed55f.zip |
py: Combine 3 comprehension opcodes (list/dict/set) into 1.
With the previous patch combining 3 emit functions into 1, it now makes
sense to also combine the corresponding VM opcodes, which is what this
patch does. This eliminates 2 opcodes which simplifies the VM and reduces
code size, in bytes: bare-arm:44, minimal:64, unix(NDEBUG,x86-64):272,
stmhal:92, esp8266:200. Profiling (with a simple script that creates many
list/dict/set comprehensions) shows no measurable change in performance.
Diffstat (limited to 'py/lexer.c')
0 files changed, 0 insertions, 0 deletions