Firefox 20x-50x slower than Chrome on setter and getter of HTMLInputElement.value (Was:Codepen demo can spend a large time in ICU)
Categories
(Core :: DOM: Forms, enhancement)
Tracking
()
People
(Reporter: mayankleoboy1, Unassigned)
Details
Attachments
(2 files)
Go to https://codepen.io/sweaver2112/pen/NWRxKra
Click on the "Shuffle" button
AR: Somewhat slower.
ER: Faster, if possible.
Profile: https://share.firefox.dev/3pbt89w
Reporter | ||
Comment 1•3 years ago
|
||
Comment 2•3 years ago
|
||
Profiling data seems to spend a lot of time for getter of HTMLInputElement.value
(<input type=number>
). Moving to DOM
Comment 3•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Comment 4•3 years ago
|
||
Original report is getter only. But when using both setter and getter, Gecko is 20x-30x slower than Chrome.
Reporter | ||
Updated•3 years ago
|
Comment 5•3 years ago
|
||
Reminds me of bug 1749590
Comment 6•3 years ago
|
||
Here's a profile, the text input is calling spending its time parsing the input as a number: https://share.firefox.dev/3pfXN5E
Comment 7•3 years ago
|
||
We can't avoid localized input unlike <input type=range>
. Why Chrome is such faster?
Reporter | ||
Comment 8•2 years ago
|
||
On the attached benchmark:
Chrome: 8ms
Nightly: 650ms (https://share.firefox.dev/42WGCr6)
Reporter | ||
Comment 9•2 years ago
|
||
With the latest Nightly, we are as fast as Chrome here. https://share.firefox.dev/44ms3yM
For ease of tracking, i will dupe this to bug 1842027
Description
•