In a long document (~300k characters long), typing is very slow, especially near the end of the document.
Taking a performance profile, most of the time is spent in ve.dm.TreeModifier.prototype.getAdjustedPosition.
In my local test on a plain text document of 300k chars, each keystroke at the end spends ~360ms in ve.dm.TransactionProcess.prototype.process.