Small linear factor remaining #3
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
question
Further information is requested
Even though griddle spreads out most of the cost of the resize, there is still a non-trivial additional cost at the time of the resize that appears to be proportional to the size of the map. That's unfortunate, and we should try to fix it.
I believe this is due to the code here:
griddle/src/lib.rs
Lines 775 to 782 in b2a063c
Specifically, the first time we try to carry elements from the old map to the new, we need to find the first non-empty bucket, which may actually take a while as the map grows. I wonder if
hashmap
could somehow keep track of the index of the first non-empty bucket?The text was updated successfully, but these errors were encountered: