diff options
author | Damien George <damien.p.george@gmail.com> | 2015-11-19 01:27:28 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-11-19 01:27:28 +0000 |
commit | 593faf14c4700afd6c2ba6a281e7d48633e4d688 (patch) | |
tree | 251e915de1161c28b2ad45c94bd7f39481bd8008 /py/emitglue.c | |
parent | db0a5aed390e4e29f81cd9e76891e14b909eee24 (diff) | |
download | micropython-593faf14c4700afd6c2ba6a281e7d48633e4d688.tar.gz micropython-593faf14c4700afd6c2ba6a281e7d48633e4d688.zip |
py/map: Store key/value in earliest possible slot in hash table.
This change makes the code behave how it was supposed to work when first
written. The avail_slot variable is set to the first free slot when
looking for a key (which would come from deleting an entry). So it's
more efficient (for subsequent lookups) to insert a new key into such a
slot, rather than the very last slot that was searched.
Diffstat (limited to 'py/emitglue.c')
0 files changed, 0 insertions, 0 deletions