Limit dead resource capacity in Blink cache to 50%.
Blink resource cache distinguishes between live and dead resources depending on whether clients of the resources are still around. The cache capacity is defined in terms of total capacity and dead resource capacity - the part of total capacity that may be consumed by dead resources. Currently we explicitly set "max_dead_capacity = capacity;", i.e. we allow dead resources to potentially consume all of the cache space. While keeping some dead resources around makes sense from the performance perspective, allowing them to constitute a majority of cache space makes renderers that are used for long one-site multiple-pages browsing sessions bloat with resources of little value. This patch limits dead resource capacity to 50% of total cache capacity, putting a cap on dead resource bloat for long-lived renderers. BUG=260662 Review URL: https://chromiumcodereview.appspot.com/19392003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212392 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment