Message402443
This can be mitigated, if not entirely fixed, by storing an ordering bit vector in the values.
This way all instances of the class SometimesShared in the example above can share the keys.
The keys might be ("optional", "attr")
For any instances with only "attr" as an attibute, the values would be (NULL, value) and the order would be (1,)
The downsides of this approach are:
1. Each values, and thus dict needs an extra 64 bit value.
2. Shared keys have a maximum size of 16.
Overall, I expect the improved sharing to more than compensate for the disadvantages. |
|
Date |
User |
Action |
Args |
2021-09-22 15:02:17 | Mark.Shannon | set | recipients:
+ Mark.Shannon, rhettinger, methane, serhiy.storchaka |
2021-09-22 15:02:17 | Mark.Shannon | set | messageid: <1632322937.18.0.369196659074.issue40116@roundup.psfhosted.org> |
2021-09-22 15:02:17 | Mark.Shannon | link | issue40116 messages |
2021-09-22 15:02:17 | Mark.Shannon | create | |
|