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
From my understanding, this code's intent is to eagerly allocate the next bucket if we're about to write the first entry of the last 1/8th of the current bucket.
7/8 1/8
<---------------------------><---->
...--] [========== current bucket =========] [-------------------------- next bucket...
↑
first entry of the last 1/8th
of the current bucket
The code currently checks if:
if index == (location.bucket_len - (location.bucket_len >> 3)){...}// -------------------------// i.e. 1/8 * location.bucket_len
Where index is - if I'm not mistaken a global vector index and should really be location.entry instead which corresponds to the relative location inside the current bucket:
if location.entry == (location.bucket_len - (location.bucket_len >> 3)){...}
NOTE: in practice, this would mean the current code was over-allocating, by allocating ahead of time for potentially unneeded buckets.
The text was updated successfully, but these errors were encountered:
From my understanding, this code's intent is to eagerly allocate the next bucket if we're about to write the first entry of the last 1/8th of the current bucket.
The code currently checks if:
Where
index
is - if I'm not mistaken a global vector index and should really belocation.entry
instead which corresponds to the relative location inside the current bucket:NOTE: in practice, this would mean the current code was over-allocating, by allocating ahead of time for potentially unneeded buckets.
The text was updated successfully, but these errors were encountered: