Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information