-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
Massive CPU Inefficiency (54x longer) introduced with the 2.15.5 release (vale_2.15.5_macOS_64-bit.tar.gz) #567
Comments
I can't reproduce this. What does your |
Here's my .vale.ini I have no skipped scopes, no ignored scopes, no TokenIgnores. Many of my rules do use I have rerun my tests today and double checked This issue seems similar. |
I can confirm that the same issue affects Windows 11 (Intel i7-8665U @1.90 GHz). Running Vale over the same folder with
This makes it practically impossible to use Vale over whole documentation sets, or with external extensions such as for VSCode (ref. errata-ai/vale-vscode#100) |
Thanks @DominikaK, that clearly shows the massive slow-down was at 2.15.5. In my test between 2.10.2 and 2.15.4 on MacOS I also see a speed difference, but not quite as large: |
Here's what I get on a set of 2802 Markdown files using just the
If I switch to the
So, some questions:
|
Some quick answers, I'll edit post this with full details when I have more time:
|
I've found the issue. Bad CPU performance occurs we have extends: existence
message: 'Start a new sentence rather than %s'
link:
ignorecase: true
nonword: true
level: error
scope: raw
tokens:
- 'and (therefore|then|so|hence|thus|since)'
- 'also suppose that'
- If I remove @DominikaK Do you have a similar issue with Clearly, something introduced in 2.15.5 changes this behaviour? I'm not sure removing this empty token (or doing a code fix for this) will fix the fan noise and briefly spiking CPU that exists in all versions even before-2.15.5 that I reported here, but I'll report back. |
@universemaster, I confirm, I notice the same issue.
After disabling a single custom rule that has the
|
Empty tokens will be ignored in the next release. However, you should also try to use extends: existence
message: 'Start a new sentence rather than %s'
link:
ignorecase: true
nonword: true
level: error
scope: raw
tokens:
- 'and (therefore|then|so|hence|thus|since)'
- 'also suppose that' has no need for it and will only be slower if you use it. |
The 2.15.5 release takes 54x times longer than 2.15.4.
I am on MacOS 10.15.7 (Catalina) with 2.5 GHz Quad-Core Intel Core i7.
I am using the releases from the release page of github:
The command is of the form:
With vale_2.15.5_macOS_64-bit.tar.gz:
With vale_2.15.4_macOS_64-bit.tar.gz:
And with the latest vale_2.23.0_macOS_64-bit.tar.gz the problem is still present:
And building 2.23.0 from source on my machine using
brew install vale
, I get a similar result.Note that these observations do not void my observations in errata-ai/vale-vscode#113 because I was actually using an older version that didn't have the problem described here. So, these "noisy fan" issues still remain a problem.
The text was updated successfully, but these errors were encountered: