You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-sparsehash
On trunk/src/google/sparsehash/sparsehashtable.h line 556, I see "if
(needed_size > bucket_count())" then resize, else do nothing. This
leads me to believe that the hashtable will grow only if the number of
full buckets (including deleted items and prospective new items)
exceeds the actual capacity of the current hashtable.
So it seems like the hashtable will fail to grow if enlarge_threshold
< needed_size < bucket_count(). Is this intended? If so then what is
the point of enlarge_threshold? I feel like I'm just missing
something.
kr
Keith Rarick
unread,
May 28, 2009, 5:58:28 AM5/28/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-sparsehash
Ah, never mind. I got it. needed_size (which comes from min_size) has already considered the 0.8 occupancy ratio.