Open Bug 1962895 Opened 16 days ago Updated 13 days ago

Testcase generating compositionevents is 2x slower and takes 20x more RAM compared to Chrome.

Categories

(Core :: DOM: Events, defect)

defect

Tracking

()

People

(Reporter: mayankleoboy1, Unassigned)

References

Details

Attachments

(1 file)

open testcase
N=5000000

Firefox: https://share.firefox.dev/3RxIDXE (10s)
Chrome: https://share.firefox.dev/42H0aTL (4.7s)

Firefox also uses 2.3GB+ RAM, whereas Chrome takes maybe 100MB.

Well, we have some composition event listeners for handling trusted composition events to support IME in the editor and to provide better UX with autocomplete etc. That might be improved with making the event listeners never listen untrusted events, but looks like that most cost is the basic handling of an event propagation...

-> S4

I don't think this is so important because untrusted CompositionEvent shouldn't be used in real web apps. Web apps need to handle CompositionEvents synchronously because it's interaction with the system text input system. So, I guess nobody creates CompositionEvent for handling the input asynchronously.

Severity: -- → S4

5000000
bubble=false: https://share.firefox.dev/4lZEiKU (8.5s)
bubble=false and composed=false: https://share.firefox.dev/3GyjNol (8.5s)
bubble=false and composed=false and cancellable=false: https://share.firefox.dev/42DNahB (8.1s)

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

Attachment

General

Creator:
Created:
Updated:
Size: