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

Remove optimizations from build scripts #1447

Merged
merged 4 commits into from
Mar 4, 2024
Merged

Conversation

nategraf
Copy link
Contributor

Throughout our repo we apply optimizations to Cargo build scripts (i.e. binaries built to run as part of the build process).
This was introduced to make calculation of control IDs faster, as this was the bottleneck for the build process.

Now that control IDs are not calculated on a per-guest basis, it is unclear if optimizing the build scripts is still beneficial to build time.
Opening this small PR to see what the build times are in CI across the various examples and tests without this setting.

Copy link

vercel bot commented Feb 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2024 6:24pm

Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-1447.d1uc3c4lom8wx5.amplifyapp.com

@SchmErik
Copy link
Contributor

So I'm looking at this run and #1483 and I'm not seeing a huge difference in execution time but it makes the Cargo.toml's look cleaner, which is nice

@nategraf
Copy link
Contributor Author

So I'm looking at this run and #1483 and I'm not seeing a huge difference in execution time but it makes the Cargo.toml's look cleaner, which is nice

Ya, I'm not exactly sure how best to evaluate this change. Ideally, we see that dev builds are actually faster, and I think that's what should happen, but after opening this PR I realized that watching for CI build times may not be the best signal, especially with sccache. Do you have thoughts on how to evaluate this change?

Copy link
Member

@flaub flaub left a comment

Choose a reason for hiding this comment

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

Since this is confined to just the build-override it LGTM

@nategraf nategraf marked this pull request as ready for review March 4, 2024 18:21
@nategraf
Copy link
Contributor Author

nategraf commented Mar 4, 2024

I'm going to do one more test, which is to build the examples from a clean clone and check build times with --timings. (Not sure why I didn't think of this flag before)

@nategraf
Copy link
Contributor Author

nategraf commented Mar 4, 2024

I've confirmed that build+run times are reduced with this PR. The effect on overall build times appears to be lower than the noise floor, but some items on the critical path (e.g. ring) build+run their build script significantly faster.

@nategraf nategraf merged commit ccb7996 into main Mar 4, 2024
28 checks passed
@nategraf nategraf deleted the victor/remove-build-opt branch March 4, 2024 19:02
SchmErik added a commit that referenced this pull request Mar 8, 2024
Throughout our repo we apply optimizations to Cargo build scripts (i.e.
binaries built to run as part of the build process).
This was introduced to make calculation of control IDs faster, as this
was the bottleneck for the build process.

Now that control IDs are not calculated on a per-guest basis, it is
unclear if optimizing the build scripts is still beneficial to build
time.
Opening this small PR to see what the build times are in CI across the
various examples and tests without this setting.

Co-authored-by: Erik Kaneda <erik@risczero.com>
SchmErik added a commit that referenced this pull request Mar 8, 2024
Throughout our repo we apply optimizations to Cargo build scripts (i.e.
binaries built to run as part of the build process).
This was introduced to make calculation of control IDs faster, as this
was the bottleneck for the build process.

Now that control IDs are not calculated on a per-guest basis, it is
unclear if optimizing the build scripts is still beneficial to build
time.
Opening this small PR to see what the build times are in CI across the
various examples and tests without this setting.

Co-authored-by: Erik Kaneda <erik@risczero.com>
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.

None yet

3 participants