Bug 252637 - Lazily allocate ResourceResponse within CachedResource
Summary: Lazily allocate ResourceResponse within CachedResource
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Matt Woodrow
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-02-20 17:23 PST by Matt Woodrow
Modified: 2023-02-24 00:21 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.