Closed
Bug 1872457
Opened 1 year ago
Closed 1 year ago
Removing all options from a Select can be slow
Categories
(Core :: DOM: Forms, enhancement)
Core
DOM: Forms
Tracking
()
RESOLVED
FIXED
123 Branch
Tracking | Status | |
---|---|---|
firefox123 | --- | fixed |
People
(Reporter: toe_head2001, Assigned: toe_head2001)
Details
Attachments
(1 file)
When a <select> has many thousands of options, removing them all can be quite slow.
For example, I have a <select> with 50,000 options. Calling replaceChildren()
on it takes 1,908ms (as measured by the Firefox profiler).
Assignee | ||
Comment 1•1 year ago
|
||
Updated•1 year ago
|
Assignee: nobody → toe_head2001
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ace5f3cc2520
Improve performance of HTMLSelectElement::RemoveOptionsFromList r=emilio
Comment 3•1 year ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox123:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•