Bug 290161
| Summary: | [WebInspector] minimize the number of data kept in m_requestIdToResourceDataMap after content eviction | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Przemyslaw Gorszkowski <pgorszkowski> |
| Component: | New Bugs | Assignee: | Przemyslaw Gorszkowski <pgorszkowski> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | All | ||
| OS: | All | ||
Przemyslaw Gorszkowski
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
Pull request: https://github.com/WebKit/WebKit/pull/43448
Radar WebKit Bug Importer
<rdar://problem/148404583>
EWS
Committed 293535@main (1bc34fec49a7): <https://commits.webkit.org/293535@main>
Reviewed commits have been landed. Closing PR #43448 and removing active labels.