[issue44206] Add a version number to dict keys.

Mark Shannon report at bugs.python.org
Mon May 24 11:35:11 EDT 2021


Mark Shannon <mark at hotpy.org> added the comment:

http://theses.gla.ac.uk/2975/1/2011shannonphd.pdf page 128.

It means we don't need to cache a pointer to the keys, just the version number.
The version number is half the size (for 64 bit machines) and using it means that we don't leak keys.

----------

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


More information about the Python-bugs-list mailing list