[issue32623] Resize dict on del/pop

STINNER Victor report at bugs.python.org
Wed Jan 24 04:31:37 EST 2018


STINNER Victor <victor.stinner at gmail.com> added the comment:

This issue is a matter of CPU vs memory tradeoff. It reminds me the PEP 393: str type doesn't make tradeoff anymore, CPython guarantee that str always use the most efficient storage (least memory) for characters.

But here the tradeoff is different. A dict is mutable, whereas str is immutable ;-)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32623>
_______________________________________


More information about the Python-bugs-list mailing list