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

improve dev build times for everyone #2133

Merged
merged 3 commits into from
Oct 9, 2024
Merged

improve dev build times for everyone #2133

merged 3 commits into from
Oct 9, 2024

Conversation

tbro
Copy link
Contributor

@tbro tbro commented Oct 8, 2024

Adds dev profile to Cargo.toml. It improves build times considerably. I don't think it hurts anything. So probably ok if CI passes. Feel free to run some cargo commands to see how you like it.

Cargo.toml Outdated
@@ -156,3 +156,12 @@ hotshot-testing ={ git = "https://www.github.com/EspressoSystems/HotShot.git", t
hotshot-types = { git = "https://www.github.com/EspressoSystems/HotShot.git", tag = "0.5.75-patch1" }
libp2p-networking = { git = "https://github.com/EspressoSystems//HotShot.git", tag = "0.5.75-patch1" }
hotshot-example-types = { git = "https://www.github.com/EspressoSystems/HotShot.git", tag = "0.5.75-patch1" }

[profile.dev]
opt-level = 1
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason not to set this (and the other one) to just opt-level = 0?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't remember why I set it to 1.

f329bdf

# Skip compiling the debug information in the first place.
debug = 0
# Skip linking debug information.
strip = "debuginfo"
Copy link
Contributor

Choose a reason for hiding this comment

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

is there a reason not to just do strip = true? (I don't actually know how significant this is)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I know that we don't want debuginfo. I'm not sure if we want symbols or not.

@tbro tbro force-pushed the tb/build/dev-profile branch from f329bdf to 494709b Compare October 8, 2024 22:15
@tbro tbro force-pushed the tb/build/dev-profile branch from 287a180 to 9bc30e7 Compare October 9, 2024 19:09
@tbro tbro merged commit d4cb7a9 into main Oct 9, 2024
16 checks passed
@tbro tbro deleted the tb/build/dev-profile branch October 9, 2024 21:16
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.

3 participants