zed: Reduce number of rayon threads, spawn with bigger stacks (#41812)

We already do this for the cli and remote server but forgot to do so for
the main binary

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Lukas Wirth
2025-11-03 12:28:32 +00:00
committed by GitHub
parent 50504793e6
commit f8b414c22c
3 changed files with 9 additions and 0 deletions
+7
View File
@@ -257,6 +257,13 @@ pub fn main() {
return;
}
rayon::ThreadPoolBuilder::new()
.num_threads(4)
.stack_size(10 * 1024 * 1024)
.thread_name(|ix| format!("RayonWorker{}", ix))
.build_global()
.unwrap();
log::info!(
"========== starting zed version {}, sha {} ==========",
app_version,