summaryrefslogtreecommitdiffstatshomepage
path: root/unix/alloc.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-12-26 21:15:47 +0000
committerDamien George <damien.p.george@gmail.com>2015-12-26 21:15:47 +0000
commitbbe8d51bd9ab0c848ee833000dcc93eb78bcbcad (patch)
treec2350172345a33f09a92c62ef830e3aafa871065 /unix/alloc.c
parente5ce5e2a432c8b77c5fc1c4397a04c800e95e7ff (diff)
downloadmicropython-bbe8d51bd9ab0c848ee833000dcc93eb78bcbcad.tar.gz
micropython-bbe8d51bd9ab0c848ee833000dcc93eb78bcbcad.zip
py/map: Add fast-path for hashing of map index when it is a qstr.
Map indicies are most commonly a qstr, and adding a fast-path for hashing of a qstr increases overall performance of the runtime. On pyboard there is a 4% improvement in the pystone benchmark for a cost of 20 bytes of code size. It's about a 2% improvement on unix.
Diffstat (limited to 'unix/alloc.c')
0 files changed, 0 insertions, 0 deletions