Skip to content

Commit 0ed7a10

Browse files
committed
Clarify why the concurrent build commands speed things up
1 parent 970b701 commit 0ed7a10

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ fn main() {
1212
#[cfg(feature = "bios")]
1313
async fn bios_main() {
1414
let out_dir = PathBuf::from(std::env::var("OUT_DIR").unwrap());
15-
// Run the bios parts concurrently. (Build time / 4 :D )
15+
// Run the bios build commands concurrently.
16+
// (Cargo already uses multiple threads for building dependencies, but these
17+
// BIOS crates don't have enough dependencies to utilize all cores on modern
18+
// CPUs. So by running the build commands in parallel, we increase the number
19+
// of utilized cores.)
1620
let (bios_boot_sector_path, bios_stage_2_path, bios_stage_3_path, bios_stage_4_path) = (
1721
build_bios_boot_sector(&out_dir),
1822
build_bios_stage_2(&out_dir),

0 commit comments

Comments
 (0)