tag/Pool: use a power-of-2 hash table size

This is simpler to calculate and the advantage of using a prime is
negligible anyway.
This commit is contained in:
Max Kellermann 2023-09-11 21:22:54 +02:00
parent c8dc1e0665
commit 75aa08ed6b
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ TagPoolItem::Create(TagType type,
value);
}
static IntrusiveHashSet<TagPoolItem, 16127,
static IntrusiveHashSet<TagPoolItem, 16384,
IntrusiveHashSetOperators<TagPoolKey::Hash,
std::equal_to<TagPoolKey>,
TagPoolItem::GetKey>,