&gt; In a paragraph of 10,000 words, the editor becomes really slow<p>I think it&#x27;s because typing a single character causes it to reparse the entire typed text in order to check if the document model needs updating.<p>I&#x27;ve seen something similar in other editors. The only solution I can naively think of is to chunk the document and only do checks within the chunk.