Open Bug 1948054 Opened 1 year ago Updated 1 year ago

Nightly is 3.5x slower in creating hyperlinks on an online Rich Text Editor (https://ckeditor.com/docs/ckeditor5/latest/examples/builds/document-editor.html)

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

Attached file d3.txt —

Go to https://ckeditor.com/docs/ckeditor5/latest/examples/builds/document-editor.html
Delete the existing text in the input-box in the middle
Copy-paste the attached sample text. Wait for it to appear (may take 2-3 seconds)
Download this file to your local machine and open it in some text editor. Then copy-paste its contents on the page.
Select all the pasted text using Ctrl+A
Click on the "Link" button on the toolbar of the Rich Text Editor.
Wait for the popup window of the link to appear.

Nightly: https://share.firefox.dev/4hFZLWI (88s)
Chrome: https://share.firefox.dev/3CKOR2B (25s)

And here is a profile where i actually add a link in the popup : https://share.firefox.dev/41dhMFR

A lot of this is overhead for new Set(set). Bug 1935193 would help.

Depends on: 1935193
See Also: → 1948092
Severity: -- → N/A
Priority: -- → P3

I tested this with patches for bug 1935193. It does make this faster, but it's not a huge win because they're cloning large Set objects with 17607 elements (so calling the self-hosted SetConstructorInit function is relatively little overhead in this case) and the sets contain objects which is pretty expensive for us (because we use SipHash).

Profile with Nightly containing the fix fro bug 1935193 : https://share.firefox.dev/4bLhJol (67 seconds) . So a 23% improvement!
And if you focus only on the JS part, the improvement is 27% ! ( Before: 88s, After: 60s)

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

Attachment

General

Creator:
Created:
Updated:
Size: