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

Add 500 ms debounce to Pylint to reduce CPU usage #89

Merged
merged 1 commit into from
May 7, 2021

Conversation

lithammer
Copy link
Contributor

Pylint can be very CPU intensive depending on how its configured. It's not uncommon to get fans when making rapid changes.

Fixes GH-87

Pylint can be very CPU intensive depending on how its configured. It's
not uncommon to get fans when making rapid changes.
@@ -472,6 +472,7 @@ export const linters = {
"pylint": {
"sourceName": "pylint",
"command": "pylint",
"debounce": 500,
Copy link
Contributor Author

@lithammer lithammer May 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this number can be discussed. But the linter is relatively slow and resource hungry, so...

@lithammer lithammer changed the title Add 500 ms debounce to pylint to reduce CPU usage Add 500 ms debounce to Pylint to reduce CPU usage May 4, 2021
@iamcco iamcco merged commit 427696e into iamcco:master May 7, 2021
@iamcco
Copy link
Owner

iamcco commented May 7, 2021

Thanks! it seems make sense

@lithammer lithammer deleted the pylint-debounce branch May 7, 2021 08:13
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 usage with pylint
2 participants