Bug 281402

Summary: [MediaRecorder/WebM] Inefficient memory usage driven by libwebm's mkvmuxer
Product: WebKit Reporter: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Component: MediaAssignee: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Jean-Yves Avenard [:jya]
Reported 2024-10-13 16:00:33 PDT
The mkvmuxer writes data on average one or two bytes at a time and we append those bytes for a FragmentedSharedBuffer ; profiler shows that a lot of time is spent allocating the Vector that will contain this data and highly fragmented memory usage. We should pack it up in block instead.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-10-13 16:01:25 PDT
Jean-Yves Avenard [:jya]
Comment 2 2024-10-13 18:23:16 PDT
EWS
Comment 3 2024-10-14 16:54:23 PDT
Committed 285159@main (d4723d6d5ac3): <https://commits.webkit.org/285159@main> Reviewed commits have been landed. Closing PR #35128 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.