I'm creating an std::unordered_map
which I will immediately proceed to populate with n key-value pairs - and I know n. After that no more elements will be added - I will only be performing lookups.
What, therefore, should I pass as bucket_count
to the constructor?
Notes:
- I know it's not terribly critical and I could simply not specify anything and it will work.
- This is related to, but not a dupe of, What should I pass to unordered_map's bucket count argument if I just want to specify a hash function?)
- If it helps your answer, you may assume I want to have a load factor between f_1 and f_2 (known in advance).
- I'm using the default hash function, and I don't know what the input is like, but it's unlikely to be adversarial to the hashing..