Bug 235635 - Optimize CachedRawResource memory use in case of DataBufferingPolicy::DoNotBufferData
Summary: Optimize CachedRawResource memory use in case of DataBufferingPolicy::DoNotBu...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Keywords: InRadar
Depends on:
Reported: 2022-01-26 02:51 PST by youenn fablet
Modified: 2022-02-02 02:52 PST (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2022-01-26 02:51:33 PST
We are currently storing the whole response in CachedResource::m_data, even if the policy is DataBufferingPolicy::DoNotBufferData.
CachedResource::m_data is set to nullptr in CachedRawResource::didFailLoading.
This begs the question whether we could try to keep m_data to nullptr throughout the load.
Comment 1 Radar WebKit Bug Importer 2022-02-02 02:52:16 PST