Closed Bug 1367505 Opened 8 years ago Closed 8 years ago

Set and clear pseudo-class locks all at once to avoid restyle thrashing when sending select options to parent process

Categories

(Core :: Layout: Form Controls, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: dbaron, Assigned: dbaron)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

This removes nearly half of the time spent in the child process pause in bug 1118086. (On my laptop, it cuts the child process pause from about 1560ms to 860ms; the parent process pause is still just over 5 seconds.) Using querySelectorAll to find only the options that need to be locked is much faster than iterating over them and locking all of them both because the iteration is slow and the locking is somewhat slow even when it's a no-op. MozReview-Commit-ID: 17h3WIt9c2O
Comment on attachment 8870932 [details] [diff] [review] Set and clear pseudo-class locks all at once to avoid restyle thrashing when sending select options to parent process Review of attachment 8870932 [details] [diff] [review]: ----------------------------------------------------------------- Thanks!
Attachment #8870932 - Flags: review?(jaws) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/6f30a5d2fa33cc7dc51a8714bee4d83165c825a9 Bug 1367505 - Set and clear pseudo-class locks all at once to avoid restyle thrashing when sending select options to parent process. r=jaws
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: