Bug 54376 - Make sorting of matched rules faster
Summary: Make sorting of matched rules faster
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-13 23:28 PST by Antti Koivisto
Modified: 2011-02-14 00:05 PST (History)
0 users

See Also:


Attachments
patch (6.47 KB, patch)
2011-02-13 23:33 PST, Antti Koivisto
mitz: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Koivisto 2011-02-13 23:28:48 PST
Make sorting of matched rules faster
Comment 1 Antti Koivisto 2011-02-13 23:33:27 PST
Created attachment 82289 [details]
patch

- use std::sort
- cache specificity, it is slow to compute
- inline compare function
Comment 2 Antti Koivisto 2011-02-14 00:05:44 PST
http://trac.webkit.org/changeset/78457