CodeEditorComponent - tokensier - performance issues?


I’m seeing some performance issues with the CodeEditorComponent, actually, it seems to be caused by the tokeniser. The following dummy file has over 2000 lines of text. The editor scrolls fine when the text is loaded. But if you add a " at the start, the whole thing becomes quite unresponsive. I know it’s an OTT type of example, but maybe there is something that can be done to speed things up a little?

testText.txt (390.3 KB)