You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Performance while editing documents with paragraphs that have lots of inline elements becomes really bad really quickly.
Sandbox (used also in the following gifs): codesandbox.io here (just try to type a sentence)
This following gif shows how slow copy pasting junks of such a document can be.
Even worse though is typing and deleting single letters via backspace, which can take really long. The following gif is not ideal as you can't see my key strokes but you should get an idea:
From what I understand, this is due to current normalization performance, but I could be wrong. Workarounds would also appreciated if anything is known.
OS, Versions, etc.
I am using latest Slate 57.1 (as can be seen in the sandbox) and Chromium 79.0 on recent Manjaro Linux on a high-end mobile workstation laptop (I saw the same issue on other systems like a Mac as well)
What's the expected behavior?
Interacting with such a document should still be responsive and offer a good user experience.
The text was updated successfully, but these errors were encountered:
Removing this line on the text node memoization check fixes this issue.
Each time a key is pressed in a paragraph, that paragraph element is not equal to the old one, and every single one of its text nodes re-renders. I'm not sure if this check is accounting for any situation?
Do you want to request a feature or report a bug?
A bug
What's the current behavior?
Performance while editing documents with paragraphs that have lots of inline elements becomes really bad really quickly.
Sandbox (used also in the following gifs): codesandbox.io here (just try to type a sentence)
This following gif shows how slow copy pasting junks of such a document can be.
Even worse though is typing and deleting single letters via backspace, which can take really long. The following gif is not ideal as you can't see my key strokes but you should get an idea:
From what I understand, this is due to current normalization performance, but I could be wrong. Workarounds would also appreciated if anything is known.
OS, Versions, etc.
I am using latest Slate 57.1 (as can be seen in the sandbox) and Chromium 79.0 on recent Manjaro Linux on a high-end mobile workstation laptop (I saw the same issue on other systems like a Mac as well)
What's the expected behavior?
Interacting with such a document should still be responsive and offer a good user experience.
The text was updated successfully, but these errors were encountered: