-
Notifications
You must be signed in to change notification settings - Fork 716
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
Severe input delay with en_GB spellchecking enabled #387
Comments
We can confirm this too. Our Windows 10 users have been experiencing the exact same issue. After turning off the spell checking, it works ok. |
Windows 10 EN-US spelling isn't quite as bad, but the lag gets progressively worse the more text we write. Doing a performance CPU profile on a long string already in the message box (adding just two words to a 20 word sentence) shows a huge amount of time going on within a few scripts: This was done from the server dev-tools within the application. Turning off spell-check removes the lag. The problem doesn't occur when just running within chrome. |
+1 |
I'm trying to understand some recent code changes in /src/public/lib/SpellCheck.js I think are causing this problem.
The part Not really sure how to combat this for anyone using multiple languages (we aren't). Maybe a limitation of the spellcheck library. |
Ok, looking at how multiLanguage is assigned, it appears to want to indicate FALSE when running on a windows platform and there are no loaded dictionaries. However, the code doesn't work like that I believe:
In the This returns a -1 when not a win32/win64 platform. Seems like the multiLanguage needs to be |
@thehutman good spot. The |
I had the same issue and I can verify after installing the build artifact from the merge request here: |
My Setup
Windows 10 Pro
2.5.0 (was the same in 2.4.0)
Description
When typing a message there is a severe delay between keystrokes after the first word and the characters rendering in the box (in fact the entire application hangs during this time). There are some older closed issues reporting this with PRs/commits supposedly fixing but this issue is still very much there on the latest version.
Same/similar closed issues:
#289
#358
Quite often this also results in the app freezing completely requiring a restart.
I can always reproduce this by enabling spell checking then starting to type (begins after first word/space). Currently I can't use the app because of this issue and just have rocket.chat open in a chrome window.
Current Behavior
Unusable input delay:
Expected Behavior
Works as expected after disabling spellchecking for en_GB:
The text was updated successfully, but these errors were encountered: