Skip to content
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

Throttle ShellCheck requests to limit CPU usage #655

Merged
merged 4 commits into from
Jan 4, 2023
Merged

Conversation

skovhus
Copy link
Collaborator

@skovhus skovhus commented Jan 4, 2023

Resolves #654

Reduce CPU usage by introduce a short execution delay and throttling for ShellCheck tasks. This is similar to how the vscode shellcheck extension works.

On OS X I can't reproduce a massive CPU usage before this change, but after adding the throttling the CPU time drops from 1,5 to 0.18.

Maybe related to: #594 #638 #630

@skovhus skovhus merged commit 51447c8 into main Jan 4, 2023
@skovhus skovhus deleted the debounce-shellcheck branch January 4, 2023 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

high CPU and memory usage on Linux
1 participant