Bug 291589

Summary: WebKit serialization tends to use copying when it should be moving
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: New BugsAssignee: Brent Fulgham <bfulgham>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Brent Fulgham
Reported 2025-04-15 13:42:47 PDT
ResourceRequestBase, RequestData, and ResourceResponse Data are serialized through IPC using move operations, but because these classes only offer copy-based constructors they are passing through the copy code path instead of moving the memory. In the case of strings, URLs, Vectors of Strings, Maps of Strings this is more costly than necessary.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-04-15 13:43:12 PDT
Brent Fulgham
Comment 2 2025-04-15 15:01:10 PDT
EWS
Comment 3 2025-04-17 14:18:13 PDT
Committed 293818@main (a83c1665d5a6): <https://commits.webkit.org/293818@main> Reviewed commits have been landed. Closing PR #44121 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.