auto merge of #1555 : pcwalton/servo/faster-attribute-lookup, r=larsbergstrom

table.

40% improvement in selector matching performance on the rainbow page.

r? @larsbergstrom
This commit is contained in:
bors-servo 2014-01-24 17:49:11 -08:00
commit bafb3e7e02

View file

@ -120,7 +120,7 @@ impl SelectorMap {
hash: &HashMap<~str,~[Rule]>,
key: &str,
matching_rules: &mut ~[Rule]) {
match hash.find(&key.to_str()) {
match hash.find_equiv(&key) {
Some(rules) => {
SelectorMap::get_matching_rules(node, *rules, matching_rules)
}