This is closely related to .NET Collections and the Large Object Heap (LOH). In a nutshell, if there are more than 85K buckets, it’s automatically on LOH and when it’s released is unknown. Does anyone aware of a good implementation of IDictionary based on lists of array or something like it that prevents it from going to LOH?
Share
Here’s a start of one option. I assume you can follow the pattern given to implement the other methods.
Just change the
numDictionariesto determine how it’s broken up.If you really need to you could make the number of dictionaries dynamic and have it add more when the existing ones get sufficiently large.