Bug 252637

Summary: Lazily allocate ResourceResponse within CachedResource
Product: WebKit Reporter: Matt Woodrow <mattwoodrow>
Component: Page LoadingAssignee: Matt Woodrow <mattwoodrow>
Status: RESOLVED FIXED    
Severity: Normal CC: beidson, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Matt Woodrow 2023-02-20 17:23:44 PST
CachedResource objects often don't have an initialised ResourceResponse, especially in the case of Fonts.

We can move the ResourceResponse (and associated response data) into a lazily allocated inner structure to save memory.
Comment 1 Radar WebKit Bug Importer 2023-02-20 17:27:32 PST
<rdar://problem/105704324>
Comment 2 Matt Woodrow 2023-02-20 17:29:06 PST
Pull request: https://github.com/WebKit/WebKit/pull/10416
Comment 3 EWS 2023-02-24 00:21:43 PST
Committed 260788@main (98761d6864f7): <https://commits.webkit.org/260788@main>

Reviewed commits have been landed. Closing PR #10416 and removing active labels.