hawkerm / monaco-editor-uwp

A Windows Runtime Component wrapper around the web-based Monaco Editor.
MIT License
152 stars 36 forks source link

Poor performance when handling/editing large text files (300,000+ lines) #66

Open MarcellVokk opened 2 years ago

MarcellVokk commented 2 years ago

Hi everyone,

I've noticed huge lag spikes and freezes when handling/editing large text documents (300,000+ lines).

I don't know if im doing something wrong... It's not that annoying since the user wont handle that large of a document very often anyway.

Can someone help me out???

*Poor performance compared to VS Code... idk if vscode is diferent, but i've heard that it uses Monaco too

hawkerm commented 2 years ago

@Vadkarika2 can you provide some more details here? Is the performance in loading the document or like scrolling around and editing afterwards? What type of file is it? Can you share the file?

Can you copy the same document into the online Monaco playground here and see the same issues? https://microsoft.github.io/monaco-editor/playground.html (in both Chrome and Microsoft Edge?)

If it repros in just the browser, then this'll be an issue with Monaco itself compared to the wrapper here, so the test above would be really useful to know.

If it does reproduce there, I'd suggest opening a bug on the Monaco repo and also include a video demonstrating the issues you're seeing.