Bug 225059
Summary: | [Cocoa] Improve memory efficiency of Sandbox operations | ||
---|---|---|---|
Product: | WebKit | Reporter: | Brent Fulgham <bfulgham> |
Component: | WebKit Misc. | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | ap, bfulgham, darin, pvollan, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Brent Fulgham
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Brent Fulgham
Based on some review comments Darin left in Bug 225004.
Radar WebKit Bug Importer
<rdar://problem/77162420>