WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
245230
[Filters] Limit the memory cost of FilterResults to 100MB
https://bugs.webkit.org/show_bug.cgi?id=245230
Summary
[Filters] Limit the memory cost of FilterResults to 100MB
Said Abou-Hallawa
Reported
2022-09-15 10:01:03 PDT
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.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-09-15 10:18:10 PDT
<
rdar://problem/99975678
>
Said Abou-Hallawa
Comment 2
2022-09-15 10:24:30 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/4390
EWS
Comment 3
2023-06-01 14:47:42 PDT
Committed
264807@main
(93ee37d30632): <
https://commits.webkit.org/264807@main
> Reviewed commits have been landed. Closing PR #4390 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug