Closed Bug 1943832 Opened 24 days ago Closed 23 days ago

Make spellcheck range creation faster.

Categories

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

defect

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 file)

No description provided.

SelectNodeContents() is constant time, while SelectNode() relies on
knowing the index of the node in its parent, which is quadratic with
many contenteditable siblings, see bug 1943746.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/33466b5ea3de Select the node contents rather than the node for spellcheck. r=masayuki
Status: ASSIGNED → RESOLVED
Closed: 23 days ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch

This improved the original testcase by 32x, and the relevant part of the profile by 134x (for 150000 elements)

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: