Commit 1758b149 authored by Scott Wheeler's avatar Scott Wheeler

Initialize the cache size to a "suitably large prime number" == 5003

svn path=/trunk/kdemultimedia/juk/; revision=207624
parent c10767da
......@@ -59,7 +59,7 @@ void Cache::save()
// protected methods
////////////////////////////////////////////////////////////////////////////////
Cache::Cache() : QDict<Tag>()
Cache::Cache() : QDict<Tag>(cacheSize)
{
}
......
......@@ -35,6 +35,11 @@ protected:
private:
static Cache *cache;
/**
* Note this number is a prime number that should be larger than the target
* size of the dict.
*/
static const int cacheSize = 5003;
};
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment