[Cocoa] Improve memory efficiency of Sandbox operations
https://bugs.webkit.org/show_bug.cgi?id=225059
Summary [Cocoa] Improve memory efficiency of Sandbox operations
Brent Fulgham
Reported 2021-04-26 09:58:56 PDT
We have a number of places in WebKit where we generate sandbox extensions to hand to other processes. These frequently involve creating Vectors of strings that are held for the lifetime of the UIProcess. We could do a better job by switching from Vector<ASCILiteral> to something like std::initializer_list<ASCIILiteral>. We don't use the various powers of these Vectors beyond being a container that we can iterate through. We should teach the Sandbox classes to consume these data types, and avoid holding onto this memory during the long stretches of time when they are not used.
Attachments
Brent Fulgham
Comment 1 2021-04-26 09:59:19 PDT
Based on some review comments Darin left in Bug 225004.
Radar WebKit Bug Importer
Comment 2 2021-04-26 10:00:13 PDT
Note You need to log in before you can comment on or make changes to this bug.