Bug 235635

Summary: Optimize CachedRawResource memory use in case of DataBufferingPolicy::DoNotBufferData
Product: WebKit Reporter: youenn fablet <youennf>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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
<rdar://problem/88371942>