Bug 248301 - Reduce memory usage when sending SharedBuffer across IPC
Summary: Reduce memory usage when sending SharedBuffer across IPC
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jean-Yves Avenard [:jya]
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-11-23 23:13 PST by Jean-Yves Avenard [:jya]
Modified: 2022-11-24 15:15 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 Jean-Yves Avenard [:jya] 2022-11-23 23:13:35 PST
Currently, whenever we send a SharedBuffer across IPC we allocate a new SharedMemory.

We can reduce that memory usage by packing SharedBuffer content into the same SharedMemory where possible.
Comment 1 Jean-Yves Avenard [:jya] 2022-11-23 23:14:28 PST
rdar://102201837
Comment 2 Jean-Yves Avenard [:jya] 2022-11-24 00:31:41 PST
Pull request: https://github.com/WebKit/WebKit/pull/6780
Comment 3 EWS 2022-11-24 15:15:30 PST
Committed 256999@main (80bf5c2acfbc): <https://commits.webkit.org/256999@main>

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