summaryrefslogtreecommitdiffstatshomepage
path: root/tests/bytecode/mp-tests/scope1.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-05-07 21:33:36 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-05-07 22:34:00 +0300
commit6638ea9ca37377a8136fb25f64f7c7710f641cd2 (patch)
tree005ad48d0bf538240df559710cd4b7cb53fab5b0 /tests/bytecode/mp-tests/scope1.py
parent52b25293e2bc7aa6828039c4535916f165031659 (diff)
downloadmicropython-6638ea9ca37377a8136fb25f64f7c7710f641cd2.tar.gz
micropython-6638ea9ca37377a8136fb25f64f7c7710f641cd2.zip
tests/bench: Add testcases for lookup in 5-el instance and namedtuple.
... and we have not that bad mapping type after all - lookup time is ~ the same as in one-attr instance. My namedtuple implementation on the other hand degrades awfully. So, need to rework it. First observation is that named tuple fields are accessed as attributes, so all names are interned at the program start. Then, really should store field array as qstr[], and do quick 32/64 bit scan thru it.
Diffstat (limited to 'tests/bytecode/mp-tests/scope1.py')
0 files changed, 0 insertions, 0 deletions