Author Mark.Shannon
Recipients Mark.Shannon, methane, vstinner
Date 2021-05-21.15:38:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1621611493.74.0.261277793426.issue44206@roundup.psfhosted.org>
In-reply-to
Content
Add a version number to dict keys.

PEP 509 added a version number to dicts. Unfortunately this is no use for optimizing attribute loads and store on instances.
We need to know whether the keys are as expected, not the dict as that is likely to be different each time.

We can add a 32 bit version number and actually reduce memory use by taking advantage of the redundancy in the rest of the keys object.
History
Date User Action Args
2021-05-21 15:38:13Mark.Shannonsetrecipients: + Mark.Shannon, vstinner, methane
2021-05-21 15:38:13Mark.Shannonsetmessageid: <1621611493.74.0.261277793426.issue44206@roundup.psfhosted.org>
2021-05-21 15:38:13Mark.Shannonlinkissue44206 messages
2021-05-21 15:38:13Mark.Shannoncreate