Bug 165472

Summary: Investigate reducing initial capacity of Partition::m_sets
Product: WebKit Reporter: Daniel Bates <dbates>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: achristensen, benjamin
Priority: P2    
Version: WebKit Nightly Build   
Hardware: All   
OS: All   

Daniel Bates
Reported 2016-12-06 09:38:56 PST
Investigate whether Partition::initialize(), <https://trac.webkit.org/browser/trunk/Source/WebCore/contentextensions/DFAMinimizer.cpp?rev=209399#L80>, is reserving too much initial capacity for Partition::m_sets. We should also investigate if Partition::m_sets ever holds more items than its initial capacity. If it never holds more items than its initial capacity then it would be more efficient to implement Partition::addSetUnchecked() in terms of Vector::uncheckedAppend() instead of Vector::append() as the former avoids a bounds check.
Attachments
Note You need to log in before you can comment on or make changes to this bug.