-
Notifications
You must be signed in to change notification settings - Fork 5k
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
100% CPU usage and slow input response when Windows spellchecking is enabled #8833
Comments
Are you sure that this is due to the spellchecker? Telegram writes drafts synchronously to disk on each text write and that may cause the same behavior, there are an issue for that already:#7952 (the issue is cross-platform even though reported by a Linux user) |
@ilya-fedin Yes, I'm sure. If I turn off grammar checking, CPU consumption is 0.1% for |
Looks like #8612 already reported about it. |
Just wondering, why 200ms exactly? |
@ilya-fedin 100-200ms is average value of user reaction. So it's a good value for debounce / throttling events. |
Thanks. |
Thanks for your report, I'll check it later. |
@grandsilence Are you sure that pure dots without any letter are the cause of high CPU usage? |
@23rd Yes, I’m sure. Just dots cause of 100% cpu usage. I can make a GIF. |
I would appreciate it. |
@23rd GIFs: Spellchecking is ONSpellchecking is OFF |
The problem with the CPU load has been solved, as of version v2.5.9 (Beta). |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps to reproduce
Expected behaviour
Spellchecking method should be called only once, 200 ms after the last input, not on every key press (debounce event via timer required).
Actual behaviour
On each symbol type Telegram calling spellcheck method and load CPU on each key press.
![cpu](https://user-images.githubusercontent.com/9817522/96152026-bd064780-0f14-11eb-8a68-f1df6eeca92c.png)
Configuration
Operating system: Windows 10 1803
Version of Telegram Desktop: 2.4.3
Used theme: Default
The text was updated successfully, but these errors were encountered: