-
Notifications
You must be signed in to change notification settings - Fork 263
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
Performance of textarea #301
Comments
Hey @leejack1000, this is something we are looking into improving at some point. We want to use a rope implementation to reduce memory usage and speed up the textarea. |
Thanks @maaslalani, it's glad to hear this. Looking forward to seeing the results soon. |
@leejack1000 just in case you're looking for a quickfix to this, here's what I'm doing: I have borrowed the code from this PR so that I can use the Long story short, this way it's possible to get pretty decent performance out of the textarea without the need to modify any bubbles or bubble tea itself. As soon as the texarea becomes active, only the cached view of the whole screen is being used and only the textarea gets |
Having made the code public today I can now link to what I've described above, in case anyone comes across the same issue and is looking for workaround. |
Thank you for sharing. |
All the pieces are now in place for this issue to be sorted out, just need some merges and dependencies updated. Just to reiterate the performance improvements to expect, here is a comment I made on another issue.
|
Can the performance of textarea be optimized?
If I typed texts in textarea, it take a lot of cpu resources, and getting lag for a while.
The text was updated successfully, but these errors were encountered: