Bug 150003

Summary: Reduce pointless malloc traffic in ElementRuleCollector.
Product: WebKit Reporter: Andreas Kling <kling>
Component: CSSAssignee: Andreas Kling <kling>
Status: RESOLVED FIXED    
Severity: Normal CC: kling
Priority: P2 Keywords: Performance
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch koivisto: review+

Description Andreas Kling 2015-10-10 11:30:30 PDT
Patch a-comin'
Comment 1 Andreas Kling 2015-10-10 11:32:16 PDT
Created attachment 262830 [details]
Patch
Comment 2 Antti Koivisto 2015-10-10 11:37:58 PDT
Comment on attachment 262830 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=262830&action=review

> Source/WebCore/css/ElementRuleCollector.h:106
> +    Vector<MatchedRule, 32> m_matchedRules;

You could bump this a bit too. We surely match more than 32 rules regularly these days.
Comment 3 Andreas Kling 2015-10-10 14:13:57 PDT
Committed r190842: <http://trac.webkit.org/changeset/190842>