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
290161
[WebInspector] minimize the number of data kept in m_requestIdToResourceDataMap after content eviction
https://bugs.webkit.org/show_bug.cgi?id=290161
Summary
[WebInspector] minimize the number of data kept in m_requestIdToResourceDataM...
Przemyslaw Gorszkowski
Reported
2025-03-21 00:49:49 PDT
Currently, when WebKit exceeds the limit of kept content resources in NetworkResourcesData, WebKit evicts older ones till we are under the limit. Eviction removes only content (downloaded and decoded data) but nothing more, which might increase memory usage significantly in time. One of the idea is to reset also m_decoder, which is not needed after eviction - decoder is used only when the downloading of resource is finished and binary data is decoded. Maybe m_decoder can be used only in `NetworkResourcesData::maybeDecodeDataToContent` or even: `NetworkResourcesData::ResourceData::decodeDataToContent()`.
Attachments
Add attachment
proposed patch, testcase, etc.
Przemyslaw Gorszkowski
Comment 1
2025-04-01 23:56:13 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/43448
Radar WebKit Bug Importer
Comment 2
2025-04-01 23:56:24 PDT
<
rdar://problem/148404583
>
EWS
Comment 3
2025-04-10 12:39:59 PDT
Committed
293535@main
(1bc34fec49a7): <
https://commits.webkit.org/293535@main
> Reviewed commits have been landed. Closing PR #43448 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