haskell/hie-bios

Decrease priority of compilation jobs to increase UX responsiveness.

Aberta

#399 aberto em 18 de mar. de 2023

 (2 comentários) (1 reação) (0 responsável)Haskell (70 forks)auto 404
ZuriHacgood first issue

Métricas do repositório

Stars
 (198 estrelas)
Métricas de merge de PR
 (Mesclagem média 12d 14h) (2 fundiu PRs em 30d)

Description

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:

https://github.com/haskell/haskell-language-server/issues/3528

Guia do colaborador