Always try shrink after node erasure.

This commit is contained in:
levlam 2022-02-23 18:05:56 +03:00
parent d090929249
commit 6f2a9270a3

View File

@ -398,7 +398,6 @@ class FlatHashTable {
return 0;
}
erase(it);
try_shrink();
return 1;
}
@ -415,6 +414,7 @@ class FlatHashTable {
DCHECK(it != end());
DCHECK(!it.it_->empty());
erase_node(it.it_);
try_shrink();
}
template <class F>