in reply to do separate hashes share common keys?
I am fairly sure that that is an optimization introduced in 5.8 to reduce memory usage with the common case of hashes used to implement objects. I believe that this optimization was part of the strategy for replacing the pseudo-hashes that were experimental in 5.6 and removed (if I recall correctly) in 5.10.
Pseudo-hashes were an attempt at reducing the overhead for structures with named fields by allowing multiple arrays to share a hashref in position zero which mapped keys to array indices.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: do separate hashes share common keys?
by LanX (Saint) on Feb 14, 2021 at 13:29 UTC | |
by Radiola (Monk) on Feb 14, 2021 at 20:06 UTC | |
by LanX (Saint) on Feb 14, 2021 at 22:06 UTC | |
by bliako (Abbot) on Feb 15, 2021 at 19:57 UTC | |
by LanX (Saint) on Feb 15, 2021 at 20:11 UTC | |
by LanX (Saint) on Feb 14, 2021 at 20:26 UTC | |
by jcb (Parson) on Feb 14, 2021 at 22:20 UTC |