Tweaks to improve memory consumption by TopSites. The biggest culprit
seems to repeatedly querying history during this perf test. So, the biggest gain is made by scaling this back. Here are other tweaks I've made: . decrease the page size/cache size of the two DBs. Now that favicons doesn't store thumbnails the db doesn't need to be so big. . Set a cap to the max number of tmp thumnbails maintains. . Force jpg data vector to be only as big as it needs to be. . Tweak TopSitesCache so it doesn't end up duplicating so many GURLs. This is particularly helpful for long redirect lists. BUG=61487 TEST=none Review URL: http://codereview.chromium.org/4106014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64837 0039d316-1c4b-4281-b951-d872f2087c98
Showing
- chrome/browser/history/thumbnail_database.cc 4 additions, 15 deletionschrome/browser/history/thumbnail_database.cc
- chrome/browser/history/top_sites.cc 56 additions, 23 deletionschrome/browser/history/top_sites.cc
- chrome/browser/history/top_sites.h 13 additions, 3 deletionschrome/browser/history/top_sites.h
- chrome/browser/history/top_sites_cache.cc 20 additions, 6 deletionschrome/browser/history/top_sites_cache.cc
- chrome/browser/history/top_sites_cache.h 31 additions, 3 deletionschrome/browser/history/top_sites_cache.h
- chrome/browser/history/top_sites_database.cc 2 additions, 2 deletionschrome/browser/history/top_sites_database.cc
- chrome/browser/tab_contents/tab_contents.cc 9 additions, 9 deletionschrome/browser/tab_contents/tab_contents.cc
Loading
Please register or sign in to comment