[issue31265] Remove doubly-linked list from C OrderedDict
Serhiy Storchaka
report at bugs.python.org
Wed Aug 23 10:37:46 EDT 2017
Serhiy Storchaka added the comment:
I like the idea. Actually I wanted to write such patch myself, but this is very delicate thing and needs to be very careful. The largest benefit is not just memory saving and performance, but robustness. Currently it is easy to went OrderedDict in incorrect state by using pure dict API. This can cause crashes, hangs or invalid bahavior (see issue24726 and issue25410). The new implementation should pass all existing tests and also fix the above issues.
See also issue28239. lru_cache uses simplified version of ordered dict.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31265>
_______________________________________
More information about the Python-bugs-list
mailing list