I am seeing Prosemirror slow down at around 50k characters in Chrome on a Macbook 2020 2Ghz Quad-Core Intel Core i5.
This is similar to another thread, and may be a duplicate, but that thread refers to much larger sized documents than 50k characters.
What’s interesting is on my 2021 Apple M1 I don’t see much slow down at all until 250k characters. But maybe this is Apple’s new chip showing its strength.
I’ll share my debug notes if they’re useful to anyone.
I used the editor on the prosemirror.net homepage for testing. I copy and paste the boilerplate content until it is about 40k characters. I used the Chrome Dev Tools Performance pane to inspect what’s going on with browser interaction handling.
I see a significant delay in the start of the keypress event and when the Prosemirror JS callback is invoked that handles the key.
Compare this with the same on the M1 mac screenshot.
I notice that the actual keydown event lasts 150ms on the Intel Mac, and 8ms on the M1 Mac.
I’ll probably design around this issue, and make sure to keep my active document smaller than 40k characters.