WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
165472
Investigate reducing initial capacity of Partition::m_sets
https://bugs.webkit.org/show_bug.cgi?id=165472
Summary
Investigate reducing initial capacity of Partition::m_sets
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
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug