[Webkit-unassigned] [Bug 245230] New: [Filters] Do not cache the result FilterImages of the SVGFilter if they will take too much memory

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 15 10:01:03 PDT 2022


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

            Bug ID: 245230
           Summary: [Filters] Do not cache the result FilterImages of the
                    SVGFilter if they will take too much memory
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sabouhallawa at apple.com
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

Allowing to cache many large FilterImages can cause a memory jetsam. We tried to solve this problem by not applying the filter if the number of filter effects exceeds a certain maximum (currently it is 100).

Instead we should look at the estimated total memory size if we cache all the results. But even if we decide to no cache the result because their memory will exceed a certain maximum (say 100 MB), we should still apply the SVGFilter without caching the results. This may be very inefficient especially with cases where a result FilterImage is used multiple times. Caching it saves time, but we have to regenerate it every time we need it. Of course this is better than not displaying anything for the filtered image.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220915/a799c1d1/attachment.htm>


More information about the webkit-unassigned mailing list