Serhiy Storchaka added the comment:

I'm wondering why new dict implementation don't keep the array of items 
compact? Original Raymond's implementation did not preserve the order after 
deletions, but saved items in an array without gaps. This could simplify and 
speed up an iteration (no need to check values for NULL, and needed to iterate 
fewer elements), and could get rid of reallocations in often mutated dicts. I 
haven't found clear explanation of this.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29202>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to