You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[DenseMap] Derive the used array instead of caching a pointer
The used array trails the bucket array in the shared allocation, so getUsed()
computes Buckets + sizeof(BucketT)*NumBuckets instead of caching a pointer,
dropping a word from every DenseMap (sizeof 24 -> 16 for a pointer key/value).
The offset is aligned because NumBuckets is a power of two >= 64, asserted in
allocateBuckets.
Lookups are unaffected (the derived pointer folds away); insert costs a few
extra instructions.
0 commit comments