diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-06-14 12:55:50 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-06-14 16:13:00 +0200 |
commit | 5fbaf6da5fe2407a13924e6667882a469e79e574 (patch) | |
tree | 6db1726087b55646d1623700e412e44fae15b0e5 /components/script/task_source/networking.rs | |
parent | 6e8560185863c08cce720c73cfab1bb2409fbf4a (diff) | |
download | servo-5fbaf6da5fe2407a13924e6667882a469e79e574.tar.gz servo-5fbaf6da5fe2407a13924e6667882a469e79e574.zip |
style: Speed up LonghandId::is_longhand_of.
By looking at the shorthands, not the other way around, given a longhand uses to
not appear in multiple longhands.
This makes the testcase go to 430ms on my machine.
This could be even faster having a static LonghandIdSet per shorthand, I guess,
but this is not done in this PR.
Diffstat (limited to 'components/script/task_source/networking.rs')
0 files changed, 0 insertions, 0 deletions