Closed Bug 1568554 Opened 7 years ago Closed 7 years ago

Avoid sorting display lists if they have less than two items

Categories

(Core :: Web Painting, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: mikokm, Assigned: mikokm)

References

Details

Attachments

(1 external file)

It seems that sorting lists with either zero or one items is a pretty common case. This patch avoids allocating the temporary storage for the items, as well as dereferencing the frame, when there are less than two items in the list.

Pushed by mikokm@gmail.com: https://hg.mozilla.org/integration/autoland/rev/c1ea06bbf60b Do not sort display lists that have less than two items r=mattwoodrow
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: