I read here at SO that Hashtable and Dictionary are pretty much the same, with the exception of the benefits of avoiding boxing / unboxing.
Using Ants Profiler I am measuring a very simple application with the following structures:
class Node { Dictionary<string, Node> Children = new Dictionary<string, Node>(); }
and
class NodeOld { Hashtable Children = new Hashtable(); }
Well, a list of 1.5 million copies of the first takes about 140 MB, and the second - more than 700 MB (64 bits).
So, there is a huge difference in implementation, right?
Ants Profiler presents a huge number of Hashtable + Bucket objects using a large example ...
So, is there an equivalent (savvy memory) option for dictionaries if you have to adhere to 1.1?
pablo source share