[Webkit-unassigned] [Bug 225059] New: [Cocoa] Improve memory efficiency of Sandbox operations

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 26 09:58:56 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=225059

            Bug ID: 225059
           Summary: [Cocoa] Improve memory efficiency of Sandbox
                    operations
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bfulgham at webkit.org

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210426/8f409eda/attachment.htm>


More information about the webkit-unassigned mailing list