banshee r3146 - in trunk/banshee: . src/Core/Hyena/Hyena.Data



Author: scottp
Date: Tue Feb  5 04:05:45 2008
New Revision: 3146
URL: http://svn.gnome.org/viewvc/banshee?rev=3146&view=rev

Log:
* src/Core/Hyena/Hyena.Data/DictionaryModelCache.cs: Initialize the
  cache dictionary to the proper capacity (since we know it).

Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Hyena/Hyena.Data/DictionaryModelCache.cs

Modified: trunk/banshee/src/Core/Hyena/Hyena.Data/DictionaryModelCache.cs
==============================================================================
--- trunk/banshee/src/Core/Hyena/Hyena.Data/DictionaryModelCache.cs	(original)
+++ trunk/banshee/src/Core/Hyena/Hyena.Data/DictionaryModelCache.cs	Tue Feb  5 04:05:45 2008
@@ -37,7 +37,7 @@
 
         public DictionaryModelCache (ICacheableModel model) : base (model)
         {
-            cache = new Dictionary<int, T> ();
+            cache = new Dictionary<int, T> (model.FetchCount);
         }
 
         public override bool ContainsKey (int i)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]