Avoid unnecessary allocation on indexer access
authorRaja R Harinath <harinath@hurrynot.org>
Tue, 8 May 2007 12:59:50 +0000 (12:59 -0000)
committerRaja R Harinath <harinath@hurrynot.org>
Tue, 8 May 2007 12:59:50 +0000 (12:59 -0000)
commit58dd5660cb0624a334716aae4c9947bbf70db483
tree5beea717f3ac033a5bd0af9516f71d8a16f49c1e
parent17dcb28fad6b0a38fe528b94d9a7272feacf1031
Avoid unnecessary allocation on indexer access
* SortedDictionary.cs (NodeHelper): Rename from NodeComparer.
(NodeHelper.CreateNode): New.
(Item.set): Move responsibility of creating new nodes to RBTree.Intern.
* RBTree.cs (INodeHelper): Rename from INodeComparer.
(INodeHelper.CreateNode): New.
(Intern): Use it to create a new node if no node is passed in.

svn path=/trunk/mcs/; revision=76926
mcs/class/System/System.Collections.Generic/ChangeLog
mcs/class/System/System.Collections.Generic/RBTree.cs
mcs/class/System/System.Collections.Generic/SortedDictionary.cs