Bug 455508 - Investigating 20% Tp regression on fast Talos machines. Up the image cache to 50 MB and turn off time-based expiry. CLOSED TREE for perf testing.
☠☠ backed out by 852f545cc9d1 ☠ ☠
authorJoe Drew <joe@drew.ca>
Mon, 19 Jan 2009 12:37:11 -0500
changeset 23936 84c6254be42a
parent 23935 3eb79df3bcb0
child 23937 852f545cc9d1
push id4802
push userjdrew@mozilla.com
push dateMon, 19 Jan 2009 17:38:46 +0000
treeherdermozilla-central@84c6254be42a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs455508
milestone1.9.2a1pre
Bug 455508 - Investigating 20% Tp regression on fast Talos machines. Up the image cache to 50 MB and turn off time-based expiry. CLOSED TREE for perf testing.
modules/libpr0n/src/imgLoader.cpp
modules/libpref/src/init/all.js
--- a/modules/libpr0n/src/imgLoader.cpp
+++ b/modules/libpr0n/src/imgLoader.cpp
@@ -529,19 +529,23 @@ nsresult imgLoader::InitCache()
   if (!gCacheObserver) 
     return NS_ERROR_OUT_OF_MEMORY;
   NS_ADDREF(gCacheObserver);
 
   os->AddObserver(gCacheObserver, "memory-pressure", PR_FALSE);
   os->AddObserver(gCacheObserver, "chrome-flush-skin-caches", PR_FALSE);
   os->AddObserver(gCacheObserver, "chrome-flush-caches", PR_FALSE);
 
+#if 0
   gCacheTracker = new imgCacheExpirationTracker();
   if (!gCacheTracker)
     return NS_ERROR_OUT_OF_MEMORY;
+#else
+  gCacheTracker = nsnull;
+#endif
 
   if (!sCache.Init())
       return NS_ERROR_OUT_OF_MEMORY;
   if (!sChromeCache.Init())
       return NS_ERROR_OUT_OF_MEMORY;
 
   nsCOMPtr<nsIPrefBranch> prefs = do_GetService(NS_PREFSERVICE_CONTRACTID, &rv); 
   if (NS_FAILED(rv))
--- a/modules/libpref/src/init/all.js
+++ b/modules/libpref/src/init/all.js
@@ -2663,12 +2663,12 @@ pref("signon.debug",                    
 // Zoom prefs
 pref("browser.zoom.full", false);
 pref("zoom.minPercent", 30);
 pref("zoom.maxPercent", 300);
 pref("toolkit.zoomManager.zoomValues", ".3,.5,.67,.8,.9,1,1.1,1.2,1.33,1.5,1.7,2,2.4,3");
 
 // Image cache prefs
 // The maximum size, in bytes, of the decoded images we cache
-pref("image.cache.size", 5242880);
+pref("image.cache.size", 52428800);
 // A weight, from 0-1000, to place on time when comparing to size.
 // Size is given a weight of 1000 - timeweight.
 pref("image.cache.timeweight", 500);