In .NET, there is a constructor for Dictionary that takes one parameter, int capacity. This is the same as with many other collecti
Dictionary
int capacity
I'd guess that in this case the capacity argument helps define the hashing function as well as the number of buckets; resizing/trimming a sparse collection of data would require recalculating hashes of all of the stored items remaining.