comparison rust/hg-core/src/utils.rs @ 52186: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
comparison
equal deleted inserted replaced
52185:e698e3e75420 52186:e6a44bc91bc2
540 } 540 }
541 541
542 /// Force the global rayon threadpool to not exceed 16 concurrent threads 542 /// Force the global rayon threadpool to not exceed 16 concurrent threads
543 /// unless the user has specified a value. 543 /// unless the user has specified a value.
544 /// This is a stop-gap measure until we figure out why using more than 16 544 /// This is a stop-gap measure until we figure out why using more than 16
545 /// threads makes `status` slower for each additional thread. 545 /// threads makes `status` and `update` slower for each additional thread.
546 /// 546 ///
547 /// TODO find the underlying cause and fix it, then remove this. 547 /// TODO find the underlying cause and fix it, then remove this.
548 /// 548 ///
549 /// # Errors 549 /// # Errors
550 /// 550 ///