Permalink
Browse files

Hashmaps: Another cleanup.

  • Loading branch information...
unknownbrackets committed Dec 2, 2017
1 parent 5c81c67 commit 8a58bf65964cec25bfffbe899bb82e0c1fba4c37
Showing with 2 additions and 0 deletions.
  1. +2 −0 Common/Hashmaps.h
View
@@ -132,6 +132,7 @@ class DenseHashMap {
void Clear() {
memset(state.data(), (int)BucketState::FREE, state.size());
count_ = 0;
removedCount_ = 0;
}
void Rebuild() {
@@ -277,6 +278,7 @@ class PrehashMap {
void Clear() {
memset(state.data(), (int)BucketState::FREE, state.size());
count_ = 0;
removedCount_ = 0;
}
// Gets rid of REMOVED tombstones, making lookups somewhat more efficient.

0 comments on commit 8a58bf6

Please sign in to comment.