Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement faster bios builds #324

Merged
merged 4 commits into from
Jan 11, 2023

Conversation

jasoncouture
Copy link
Contributor

@jasoncouture jasoncouture commented Jan 9, 2023

By executing llvm-objcopy, and cargo-install in parallel, we can in theory cut bios build time to 25% of it's original build time.

Local testing has taken it from ~1m to ~22s on my Ryzen 7950x

This branch:
Finished dev [unoptimized + debuginfo] target(s) in 22.53s

Main at time of writing:
Finished dev [unoptimized + debuginfo] target(s) in 58.25s

@jasoncouture jasoncouture force-pushed the faster_bios_builds branch 3 times, most recently from 6b35676 to 23c746c Compare January 11, 2023 02:14
@jasoncouture jasoncouture marked this pull request as ready for review January 11, 2023 02:14
Copy link
Member

@phil-opp phil-opp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, thanks a lot! I can confirm that this change speeds up the build. On my 5900X machine cargo build now takes ~32 seconds instead of ~58 seconds.

@phil-opp phil-opp merged commit dd7b912 into rust-osdev:main Jan 11, 2023
@phil-opp phil-opp mentioned this pull request Mar 12, 2023
@phil-opp phil-opp mentioned this pull request Mar 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants