servo/components/style/servo
Emilio Cobos Álvarez ad0f63769c style: Speed up custom property diffing.
When entering or leaving fullscreen in youtube, we spend most of the
restyle time diffing custom properties, under IndexMap::eq.

Turns out that IndexMap equality is not order-aware, and thus you
actually need to make a hashmap lookup for each entry in the map, which
is unnecessarily inefficient.

Instead, just compare the iterators.

See https://github.com/bluss/indexmap/issues/153.

Differential Revision: https://phabricator.services.mozilla.com/D89434
2021-02-26 16:44:05 +01:00
..
media_queries.rs style: Use mozilla::Length rather than nscoord to store font sizes. 2021-02-26 16:44:05 +01:00
mod.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
restyle_damage.rs style: Speed up custom property diffing. 2021-02-26 16:44:05 +01:00
selector_parser.rs style: Replace :-moz-native-anonymous-no-specificity with :where(:-moz-native-anonymous). 2021-02-26 16:44:05 +01:00
url.rs style: Fix Servo build. 2019-06-04 01:04:01 -04:00