Closed gagbo closed 1 year ago
(And emacs 28 upstream acts like vim, so there's a hidden regression somewhere in the fork :( )
Maybe related to https://github.com/emacs-lsp/emacs/issues/5 ?
I think the issue is fixed after a rebase to emacs-29 (I'm testing https://github.com/gagbo/emacs/tree/json-rpc-29 which I'll rebase probably once a week or a fortnight). I have peak CPU usage, and the status in the modeline reported up to 8 compilation tasks in parallel when going into a Rust buffer, which is what I expected.
Therefore I'm closing the issue.
Hi,
Still the same issue as pointed out on Discord:
Using:
when I open a rust project Rust-Analyzer starts, but it doesn't take all the resources at all, leading to a VERY (probably by a factor 10) slow initialization of the cache. See this screenshot of btop resource usage:![Capture d’écran 2022-11-14 à 08 59 36](https://user-images.githubusercontent.com/10496163/201609063-5c4fc621-9ec7-460b-ad84-5ad575bbe776.png)
Opening the same project with vim spawns more threads on demand (peaks to 30 for this project) and uses all available CPU time (peaks to 100% all cores), leading to way faster indexing. I could not repro this on Linux, but I didn't try with this commit yet.