Skip to content

Commit c54d92c

Browse files
committed
bootstrap/format: send larger batches to rustfmt
1 parent d3d145e commit c54d92c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bootstrap/src/core/build_steps/format.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ pub fn format(build: &Builder<'_>, check: bool, paths: &[PathBuf]) {
279279
let thread = std::thread::spawn(move || {
280280
let mut children = VecDeque::new();
281281
while let Ok(path) = rx.recv() {
282-
// try getting a few more paths from the channel to amortize the overhead of spawning processes
283-
let paths: Vec<_> = rx.try_iter().take(7).chain(std::iter::once(path)).collect();
282+
// try getting more paths from the channel to amortize the overhead of spawning processes
283+
let paths: Vec<_> = rx.try_iter().take(63).chain(std::iter::once(path)).collect();
284284

285285
let child = rustfmt(&src, &rustfmt_path, paths.as_slice(), check);
286286
children.push_back(child);

0 commit comments

Comments
 (0)