I'm using some very large collections (lists and dictionaries), containing more than Int32.MaxValue
items.
The machines running my application may have anywhere from 64 - 1024 GB of RAM, so memory space is not a concern at the moment.
I need to know two things:
a) Can the System.Collections.Generic
objects handle 64-bit item counts?
b) If so, is there a way to set the initial capacity to a value greater than Int32.MaxValue
?
I've been reading about the significant performance benefits that come with setting the initial capacity exactly where you need it - e.g. here.
I imagine the importance of setting the initial capacity only becomes more and more significant as collections get larger and larger.