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

Run nimsuggest with low priority #121

Open
arnetheduck opened this issue Feb 3, 2023 · 3 comments
Open

Run nimsuggest with low priority #121

arnetheduck opened this issue Feb 3, 2023 · 3 comments

Comments

@arnetheduck
Copy link

nimsuggest and friends are low-priority helpers - as such, it would be preferable to run them with lower scheduling priority so that it doesn't hog valuable CPU when compiling.

@saem
Copy link
Owner

saem commented Feb 5, 2023

Hmm, I'd say potentially prioritize nimsuggest more aggressively or keep it the same. Then if a build or other action is initiated, ease off in sending requests to nimsuggest so it calms down naturally based on how the user is acting.

@arnetheduck
Copy link
Author

nimsuggest keeps analyzing code even if you're doing other stuff that's more important (such as typing or building) - neither of these are things that you want slowed down (ie stuttering typing just because nimsuggest slowly is crawling through hundreds of modules is poor UX and slowing down builds is counterproductive since the build is more accurate and important generally than suggest) - you generally cannot detect if the computer is being used for something else, ie "build" might be launched from command-line outside of vscode - the OS can however, and act on it via prios.

@root-11
Copy link

root-11 commented Sep 3, 2023

I can confirm that nimsuggest.exe is consuming 100% on a core on windows despite that I'm just reading the code - e.g. no edits.

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

No branches or pull requests

3 participants