-
Notifications
You must be signed in to change notification settings - Fork 83
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
Conversation
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 |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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.
# Skip compiling the debug information in the first place. | ||
debug = 0 | ||
# Skip linking debug information. | ||
strip = "debuginfo" |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.
f329bdf
to
494709b
Compare
287a180
to
9bc30e7
Compare
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.