Raymond Hettinger added the comment: The problem is that cache hits now create "holes" in the compact dict and trigger periodic compaction. In contrast, the existing code leaves dicts unchanged when there is a cache hit.
I prefer the current code. Though it took a little more effort to implement, that work is already done and done well. The linked lists are cheap and have consistent, predictable performance. I also like that the current implementation is only loosely coupled with dictionaries and not tightly tied to the compact dict with its evolving implementation details. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28239> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com