[Webkit-unassigned] [Bug 74798] New: REGRESSION(65859): asynchronize and throttle memory cache prune with timer

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Dec 17 18:27:20 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=74798

           Summary: REGRESSION(65859): asynchronize and throttle memory
                    cache prune with timer
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: kewpie.w.zp at hotmail.com


In slideshow of images in large number, webkit memory cache capacity can be exceed quite easily. Starting from 65859 patch (https://bugs.webkit.org/show_bug.cgi?id=65859), memory cache is notified upon decoded data access after each image is drawn. Those notifications result in lots of memory cache prune requests in high frequency. The painting of images are slowed down, because memory cache prune is performed synchronously and it won't return until prune is done.

This patch is to make memory cache prune asynchronous through a Timer and add throttle support to those follow-up requests after timer is scheduled and before it's fired. Timer is scheduled with a delay, either fixed or variable, it's open to design. In this patch, a prune-request-#-per-second related delay is used, to adapt workload change. This patch improves performance by allowing reasonably larger memory cache peak when workload is higher, but it also promises to prune cache timely once timer is fired.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list