Mercurial > public > mercurial-scm > hg-stable
diff rust/hg-core/src/utils.rs @ 52156:e6a44bc91bc2 stable
rust-update: make `update_from_null` respect `worker.numcpu` config option
This was overlooked in the original series.
This is important for tests (because we run many at once), and for the
occasional end user that wants to keep their CPU usage in check.
A future series should clean up this `worker` parameter tunelling business by
rewriting the config in Rust, but doing so on stable would be a very bad
idea.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Tue, 05 Nov 2024 15:21:09 +0100 |
parents | aba622c7dc7e |
children | f4aede0f01af |
line wrap: on
line diff
--- a/rust/hg-core/src/utils.rs Tue Nov 05 15:18:32 2024 +0100 +++ b/rust/hg-core/src/utils.rs Tue Nov 05 15:21:09 2024 +0100 @@ -542,7 +542,7 @@ /// Force the global rayon threadpool to not exceed 16 concurrent threads /// unless the user has specified a value. /// This is a stop-gap measure until we figure out why using more than 16 -/// threads makes `status` slower for each additional thread. +/// threads makes `status` and `update` slower for each additional thread. /// /// TODO find the underlying cause and fix it, then remove this. ///