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

Decrease priority of compilation jobs to increase UX responsiveness. #399

Open
mgajda opened this issue Mar 18, 2023 · 2 comments
Open

Decrease priority of compilation jobs to increase UX responsiveness. #399

mgajda opened this issue Mar 18, 2023 · 2 comments
Labels
good first issue Good for newcomers ZuriHac

Comments

@mgajda
Copy link

mgajda commented Mar 18, 2023

HIE is expected to respond to events quickly, just like its ancestor is expected to be UI process.
However, the compilations are generally batch jobs that can take longer time to complete,
and should not delay UI.

I suggest we use System.Process.nice to decrease priority of any compilation job we call.
That assures our interactivity is unhindered when we open a big project, and start compiling it with all numCapabilities.

This continues discussion from here:

haskell/haskell-language-server#3528

@mgajda
Copy link
Author

mgajda commented Mar 18, 2023

@michaelpj Is that what you suggested in haskell/haskell-language-server#3528?

@fendor
Copy link
Collaborator

fendor commented Mar 18, 2023

Yeah, I think that is sensible. I'd merge a PR for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers ZuriHac
Projects
Development

No branches or pull requests

3 participants