Closed Bug 1385369 Opened 7 years ago Closed 7 years ago

Reserve 1 space in Selection::mRanges

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Most selections on the Web end up with one Range inside them. By reserving the space for this one range inline, we can avoid the allocator pressure in a lot of hot code when manipulating the Selection object.
Attachment #8891438 - Flags: review?(kyle)
Blocks: 1346723
Attachment #8891438 - Flags: review?(kyle) → review+
Pushed by eakhgari@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/07320f178c14 Reserve 1 space in Selection::mRanges; r=qdot
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Assignee: nobody → ehsan
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: