diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-06-15 03:14:08 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-06-15 03:14:08 +0200 |
commit | b41f741f5bf0e97fe2fb791bca07f0ffd6d66ba3 (patch) | |
tree | 4236a351e738671a336652fbe8d811cf51b34579 /components/script/microtask.rs | |
parent | b741df35253e63d80151b97c1e442f92614baaf4 (diff) | |
download | servo-b41f741f5bf0e97fe2fb791bca07f0ffd6d66ba3.tar.gz servo-b41f741f5bf0e97fe2fb791bca07f0ffd6d66ba3.zip |
style: Avoid some branches in common RuleIterator::next cases.
I saw this function appear in the profiles at #17329.
It was under set_device, which isn't a Stylo path, but probably worth there
anyway.
This reduces the reported overhead of RulesIterator::next in perf from ~8% to
0.46%
Diffstat (limited to 'components/script/microtask.rs')
0 files changed, 0 insertions, 0 deletions