New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Input lag for large text body (>2000 lines) #230
Comments
I don't know any better way to deal with it. |
It seems to be a problem with input events bubbling in the editor, not from my application. I tested the editor in an isolated way, using the provided sandbox examples and it's the same: as the file gets bigger it gets slower. In case someone wants to dive deeper into this. Most likely I'll migrate to another solution for time reasons but this is a great tool! And it's a pity that it can't be used properly for a relatively medium size source text. |
@herrera-ignacio What other solution have you come up with to deal with this issue? Do you have a hint how to investigate this issue? |
Any solution for lag |
Not really, I've ended up implementing my own text area editor while leveraging It seems that if the preview tab is mounted, then lag appears again, so it'd say it's a problem with how this library is working with Remark's syntax tree, which is causing the event bubbling lag I saw last time I did a profiling on this one. Unfortunately, I'm not a collaborator on this project nor do I have the time to help fix it, I just wanted to throw some light into the matter because it seemed collaboratos hadn't spotted this one until the issue was created. |
Hey! I'm developing a text editor on top of this for a private project (I added some server-side processing for specific text macros, so one can add those text macros from the top toolbar or just writing them, save the text, and then a server will process that...).
The problem is that some of our text files are exceeding the 2000 lines and the editor became really slow at some point for similar large text sources (~500-1000ms input lag for each keystroke).
I've tried:
preview="edit"
)value
nororChange
)value
changes).Is there some known limitation for such large texts? Any ideas of what may be causing this?
The text was updated successfully, but these errors were encountered: