about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-02-29 07:58:29 +0100
committerRalf Jung <post@ralfj.de>2024-02-29 08:01:06 +0100
commitc54d92c56e6f3380bb43e306d62535e24a45d211 (patch)
treeef2bef1aacf7dc0024a2b395b22dcb89ab98f30f
parentd3d145ea1cae47ad392173f890577788117da3d9 (diff)
downloadrust-c54d92c56e6f3380bb43e306d62535e24a45d211.tar.gz
rust-c54d92c56e6f3380bb43e306d62535e24a45d211.zip
bootstrap/format: send larger batches to rustfmt
-rw-r--r--src/bootstrap/src/core/build_steps/format.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/src/core/build_steps/format.rs b/src/bootstrap/src/core/build_steps/format.rs
index 69c8792b031..700c3ee4fda 100644
--- a/src/bootstrap/src/core/build_steps/format.rs
+++ b/src/bootstrap/src/core/build_steps/format.rs
@@ -279,8 +279,8 @@ pub fn format(build: &Builder<'_>, check: bool, paths: &[PathBuf]) {
     let thread = std::thread::spawn(move || {
         let mut children = VecDeque::new();
         while let Ok(path) = rx.recv() {
-            // try getting a few more paths from the channel to amortize the overhead of spawning processes
-            let paths: Vec<_> = rx.try_iter().take(7).chain(std::iter::once(path)).collect();
+            // try getting more paths from the channel to amortize the overhead of spawning processes
+            let paths: Vec<_> = rx.try_iter().take(63).chain(std::iter::once(path)).collect();
 
             let child = rustfmt(&src, &rustfmt_path, paths.as_slice(), check);
             children.push_back(child);