Bug 150003 - Reduce pointless malloc traffic in ElementRuleCollector.
Summary: Reduce pointless malloc traffic in ElementRuleCollector.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords: Performance
Depends on:
Blocks:
 
Reported: 2015-10-10 11:30 PDT by Andreas Kling
Modified: 2015-10-10 14:13 PDT (History)
1 user (show)

See Also:


Attachments
Patch (4.76 KB, patch)
2015-10-10 11:32 PDT, Andreas Kling
koivisto: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>