Testcase generating compositionevents is 2x slower and takes 20x more RAM compared to Chrome.
Categories
(Core :: DOM: Events, defect)
Tracking
()
People
(Reporter: mayankleoboy1, Unassigned)
References
Details
Attachments
(1 file)
1.00 KB,
text/html
|
Details |
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.
Comment 1•14 days ago
|
||
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...
Comment 2•13 days ago
|
||
-> 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 CompositionEvent
s synchronously because it's interaction with the system text input system. So, I guess nobody creates CompositionEvent
for handling the input asynchronously.
Reporter | ||
Comment 3•13 days ago
|
||
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)
Description
•