banshee r3146 - in trunk/banshee: . src/Core/Hyena/Hyena.Data
- From: scottp svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r3146 - in trunk/banshee: . src/Core/Hyena/Hyena.Data
- Date: Tue, 5 Feb 2008 04:05:46 +0000 (GMT)
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]