diff rust/hg-core/src/dirstate_tree/status.rs @ 49845:e0c0545e2e55

branching: merge stable into default
author Raphaël Gomès <rgomes@octobus.net>
date Wed, 04 Jan 2023 16:02:22 +0100
parents c7fb9b74e753 c52435820bbd
children c15b415d1bff
line wrap: on
line diff
--- a/rust/hg-core/src/dirstate_tree/status.rs	Tue Jan 03 11:53:35 2023 -0500
+++ b/rust/hg-core/src/dirstate_tree/status.rs	Wed Jan 04 16:02:22 2023 +0100
@@ -55,7 +55,7 @@
     // instantiated in `rhg` or some other caller.
     // TODO find the underlying cause and fix it, then remove this.
     rayon::ThreadPoolBuilder::new()
-        .num_threads(16)
+        .num_threads(16.min(rayon::current_num_threads()))
         .build_global()
         .ok();