This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mark.Shannon
Recipients Mark.Shannon, corona10, josh.r, methane
Date 2021-10-12.14:35:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1634049358.2.0.028984333966.issue45340@roundup.psfhosted.org>
In-reply-to
Content
Josh,

I'm not really following the details of what you are saying.

You claim "Key-sharing dictionaries were accepted largely without question because they didn't harm code that broke them".
Is that true? I don't remember it that way. They were accepted because they saved memory and didn't slow things down.

This issue, proposes the same thing: less memory used, no slower or a bit faster.

If you are curious about how the first few instances of a class are handled, it is described here: 
https://github.com/faster-cpython/ideas/issues/72#issuecomment-920117600

Lazy attribute is not an issue here. How well keys are shared across instances depends on the dictionary implementation and was improved by https://github.com/python/cpython/pull/28520


It would be helpful if you could give specific examples where you think this change would use more memory or be slower.
History
Date User Action Args
2021-10-12 14:35:58Mark.Shannonsetrecipients: + Mark.Shannon, methane, josh.r, corona10
2021-10-12 14:35:58Mark.Shannonsetmessageid: <1634049358.2.0.028984333966.issue45340@roundup.psfhosted.org>
2021-10-12 14:35:58Mark.Shannonlinkissue45340 messages
2021-10-12 14:35:58Mark.Shannoncreate