According to Reflector, the Dictionary class is never compressed. void Resize()hardcoded to always double the size.
Perhaps you can create a new dictionary and use the appropriate constructor to copy elements. It will be quite inefficient.
Or, implement your own vocabulary with an existing blue print. This works less than you might think at first.
Be sure to compare both approaches.
source
share