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

perf: Change link-time optimization in dev and test #2600

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

Raphexion
Copy link

Motivation

This change improves the development cycle in both dev and test, when running the same command multiple times in a row.

On my machine I can see improvements from minutes to seconds. For example when running cargo run and cargo test.

Test Plan

Compare running a commands 3 times in a row with or without this patch.

Related PRs

None

@vicsn
Copy link
Collaborator

vicsn commented Jan 21, 2025

"This branch is out-of-date with the base branch"

This change improves the development cycle in both dev and test,
when running the same command multiple times in a row.

On my machine I can see improvements from minutes to seconds.
For example when running `cargo run` and `cargo test`.

Co-authored-by: Paul Dann <[email protected]>
@Raphexion Raphexion force-pushed the nijo/speed-up-dev-test-cycle branch from 6117881 to 379062c Compare January 22, 2025 07:58
@Raphexion
Copy link
Author

@vicsn Sorry about that, I had forgotten to set the upstream repo. Now it is onto of 7c4a910 staging

@vicsn
Copy link
Collaborator

vicsn commented Jan 26, 2025

Regarding Lukasz' comment.

Seems like the snarkVM CircleCI tests do run slower, 30 minutes on this PR instead of 20 or 22 minutes on recent PRs. This difference will matter a lot when we need to push a hotfix through.

Can you remove the link-time optimization for the test profile? We can keep it as the default on the dev profile. :)

Also from this and a couple other PRs it seems that the ledger-puzzle-epoch job is flaky. Can you upgrade its resource class in .circleci/config.yml to medium?

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