Testing with that file, I’m seeing 47 milliseconds taken for creating the editor state (where the file is split into lines and built into a document tree) and 9 milliseconds for creating an editor view with that state.
In my case, this takes a bit longer in initial render.
I use @codemirror/lang-json for syntax highighting and a theme
Also i have a usecase where i need to replace this huge content with another huge content. I currently use view.dispatch({ changes: { from: 0, to: view.state.doc.length, insert: data } });
This again takes few seconds to reflect. Is there any other optimized ways to achive this?