[issue13903] New shared-keys dictionary implementation

Raymond Hettinger report at bugs.python.org
Tue Jan 31 03:17:21 CET 2012


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

Changing dictionaries is a big deal.  You're changing many pieces at once (not a good idea) including changing tunable parameters that are well-studied (I spent a month testing whether 5/8 was better idea that 2/3 for resizing or when the ideal small dict size was 4, 8, or 16).  You're changing the meaning of the fields in dictobject.h which will likely break any code that relied on those.

The ideas may be good ones but they warrant a good deal of thought.  Dicts weren't just slapped together -- the current code is the product to two decades of tweaking by engineers who devoted significant time to the task.  It would be easy to unknowingly undo some of their work.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13903>
_______________________________________


More information about the Python-bugs-list mailing list