Open Bug 1845185 Opened 1 year ago Updated 9 months ago

2x slower than Chrome at setting HTMLInputElement.value on a text box

Categories

(Core :: DOM: Forms, defect, P3)

defect

Tracking

()

People

(Reporter: mstange, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sp3])

Attachments

(1 file)

Attached file testcase

On nearly all the TodoMVC tests, the value setter of the text input shows up in the top 10 list of things that we are slower at than Chrome.

Fixing the performance difference should improve our numbers by 0.4% overall, which is equivalent to improving a single subtest by 8.5%. The test that benefits the most is TodoMVC-Svelte, because it does the least amount of other work.

Full Sp3 run profiles:
Firefox: https://share.firefox.dev/44DRpIw 1818 samples
Chrome: https://share.firefox.dev/44EgC5E 1078 samples

On the attached testcase, I get 820ms in Firefox and 320ms in Chrome.

Looks like that a lot of samples will be gone by the patch for bug 1845215.

Depends on: 1845215
Severity: -- → S3
Priority: -- → P3

Because of the fixes of the blockers, need new profile. (It seems that there are still bottlenecks in the editor and the selection.)

Flags: needinfo?(mstange.moz)

Updated profiles:

Firefox: https://share.firefox.dev/3YGv8aD 1775 samples
Chrome: https://share.firefox.dev/47D9gRz 1081 samples

Flags: needinfo?(mstange.moz)

Thank you. It seems that we don't have so many things to optimize existing leaf code anymore. It seems that we need design changes for putting off some unnecessary things.

Bug 1849286 has improved the time spent in the setter by 8%.

Before: https://share.firefox.dev/44pbDVj 1730 samples
After: https://share.firefox.dev/44qkc2d 1596 samples
Chrome: https://share.firefox.dev/3YVfzw3 1085 samples

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

Attachment

General

Created:
Updated:
Size: