Closed Bug 1663618 Opened 5 years ago Closed 5 years ago

Lots of time diffing custom properties on youtube.

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED FIXED
82 Branch
Tracking Status
firefox82 --- fixed

People

(Reporter: emilio, Assigned: emilio)

Details

Attachments

(1 file)

When entering or leaving fullscreen in youtube, we spend most of the restyle time diffing custom properties.

Turns out this is slower than it needs to be.

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.

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d46a20917d66 Speed up custom property diffing. r=boris
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: