Message403737
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. |
|
Date |
User |
Action |
Args |
2021-10-12 14:35:58 | Mark.Shannon | set | recipients:
+ Mark.Shannon, methane, josh.r, corona10 |
2021-10-12 14:35:58 | Mark.Shannon | set | messageid: <1634049358.2.0.028984333966.issue45340@roundup.psfhosted.org> |
2021-10-12 14:35:58 | Mark.Shannon | link | issue45340 messages |
2021-10-12 14:35:58 | Mark.Shannon | create | |
|