From 48b06312289a90ad38278d3adb0bce5e9e0bd67e Mon Sep 17 00:00:00 2001 From: zecke Date: Thu, 10 Oct 2002 20:16:15 +0000 Subject: Implement read ahead on the XML resource... Scrolling is now noticeable faster with 10.000 items but not as fast the XML backend... OPimCache can be tuned and Query->OTodo too --- (limited to 'libopie2/opiepim/core/opimcache.h') diff --git a/libopie2/opiepim/core/opimcache.h b/libopie2/opiepim/core/opimcache.h index 067f6e7..839550c 100644 --- a/libopie2/opiepim/core/opimcache.h +++ b/libopie2/opiepim/core/opimcache.h @@ -61,7 +61,9 @@ void OPimCacheItem::setRecord( const T& t ) { } // Cache template -OPimCache::OPimCache() { +OPimCache::OPimCache() + : m_cache(100, 53 ) +{ m_cache.setAutoDelete( TRUE ); } template -- cgit v0.9.0.2