haskell/hie-bios

Decrease priority of compilation jobs to increase UX responsiveness.

开放

#399 创建于 2023年3月18日

 (2 条评论) (1 个反应) (0 位负责人)Haskell (70 个派生)auto 404
ZuriHacgood first issue

仓库指标

星标
 (198 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南