From: Michael D. <mik...@us...> - 2004-06-28 03:41:44
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7362 Modified Files: IdentityMap.cs SequencedHashMap.cs Log Message: Modified IdentityMap to use SequencedHashMap instead of ListDictionary because of o(n) perf problems with ListDictionary. Finished coding SequencedHashMap. Index: IdentityMap.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Util/IdentityMap.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** IdentityMap.cs 25 Mar 2004 17:10:58 -0000 1.8 --- IdentityMap.cs 28 Jun 2004 03:41:34 -0000 1.9 *************** *** 54,58 **** public static IDictionary InstantiateSequenced() { ! return new IdentityMap(new ListDictionary()); } --- 54,58 ---- public static IDictionary InstantiateSequenced() { ! return new IdentityMap(new SequencedHashMap()); } Index: SequencedHashMap.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Util/SequencedHashMap.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** SequencedHashMap.cs 19 Mar 2003 07:14:45 -0000 1.2 --- SequencedHashMap.cs 28 Jun 2004 03:41:34 -0000 1.3 *************** *** 61,65 **** using System.Collections; ! namespace NHibernate.Util { /// <summary> /// A map of objects whose mapping entries are sequenced based on the order in which they were --- 61,66 ---- using System.Collections; ! namespace NHibernate.Util ! { [...976 lines suppressed...] ! ! public DictionaryEntry Entry ! { ! get { return new DictionaryEntry(_pos.Key, _pos.Value); } ! } ! ! public object Key ! { ! get { return _pos.Key; } ! } ! ! public object Value ! { ! get { return _pos.Value; } ! } ! ! #endregion ! } } } |