diff options
author | Andrei Popescu <andreip@google.com> | 2010-03-19 20:44:21 +0000 |
---|---|---|
committer | Andrei Popescu <andreip@google.com> | 2010-03-22 12:02:13 +0000 |
commit | 3d8b70cc80a42ce1b7146aade2a4a0fca0b1eba2 (patch) | |
tree | 6c74fe19879c0270885c20c9ec938cf2fb9d677b | |
parent | 140b33aa6f3edbb95963d7b594edeec4673ab124 (diff) | |
download | packages_apps_browser-3d8b70cc80a42ce1b7146aade2a4a0fca0b1eba2.zip packages_apps_browser-3d8b70cc80a42ce1b7146aade2a4a0fca0b1eba2.tar.gz packages_apps_browser-3d8b70cc80a42ce1b7146aade2a4a0fca0b1eba2.tar.bz2 |
Diasble page cache on high-end devices while b: 2525377 is not fixed.
-rw-r--r-- | src/com/android/browser/BrowserSettings.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/browser/BrowserSettings.java b/src/com/android/browser/BrowserSettings.java index 7b55edf..f58478f 100644 --- a/src/com/android/browser/BrowserSettings.java +++ b/src/com/android/browser/BrowserSettings.java @@ -257,10 +257,14 @@ class BrowserSettings extends Observable { // the cost of one cached page is ~3M (measured using nytimes.com). For // low end devices, we only cache one page. For high end devices, we try // to cache more pages, currently choose 5. + // + // Note: the page cache is disabled on high-end devices due to an + // incompatibility with V8. TODO: re-enable the page cache once the + // problem with V8 is solved. ActivityManager am = (ActivityManager) ctx .getSystemService(Context.ACTIVITY_SERVICE); if (am.getMemoryClass() > 16) { - pageCacheCapacity = 5; + pageCacheCapacity = 0; } else { pageCacheCapacity = 1; } |