-
Notifications
You must be signed in to change notification settings - Fork 34
[FIX] - Update build profiles #575
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
base: master
Are you sure you want to change the base?
Conversation
* Update set-up-a-template.md improve wording * update compiler flag tip
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.
Nice! LGTM
Initial compilation may take several minutes, depending on your machine specifications. Always use the `--release` flag to build optimized, production-ready artifacts. | ||
Initial compilation may take several minutes, depending on your machine specifications. Use the `--release` flag for improved runtime performance compared to the default `--debug` build. If you need to troubleshoot issues, the `--debug` build provides better diagnostics. | ||
|
||
For production deployments, consider using a dedicated `--production` profile (which can be copied from the [Polkadot SDK](https://github.com/paritytech/polkadot-sdk/blob/5d47972fad149da688f096d25ba643bd783f3604/Cargo.toml#L1436-L1439){target=\_blank}) - this can provide an additional 15-30% performance improvement over the standard `--release` profile. |
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 think it is --profile production
.
I will ask to include this into the templates to make it available here without additional effort.
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.
Thanks! @ggwpez, should we hold this PR until paritytech/polkadot-sdk-parachain-template#35 is resolved?
…8378) Addressing paritytech/polkadot-sdk-parachain-template#35 Adding the production build profile for 15-30% speedup when people build with --profile production, see polkadot-developers/polkadot-docs#534 and polkadot-developers/polkadot-docs#575. --------- Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…8378) Addressing paritytech/polkadot-sdk-parachain-template#35 Adding the production build profile for 15-30% speedup when people build with --profile production, see polkadot-developers/polkadot-docs#534 and polkadot-developers/polkadot-docs#575. --------- Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…8378) Addressing paritytech/polkadot-sdk-parachain-template#35 Adding the production build profile for 15-30% speedup when people build with --profile production, see polkadot-developers/polkadot-docs#534 and polkadot-developers/polkadot-docs#575. --------- Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com> (cherry picked from commit ce69f0d)
Hey @ggwpez ! I see that this was added to the polkadot-sdk repository. Please let us know when this is added to the polkadot-sdk-parachain-template one, and create a tag or release for it so we can add references |
…8378) Addressing paritytech/polkadot-sdk-parachain-template#35 Adding the production build profile for 15-30% speedup when people build with --profile production, see polkadot-developers/polkadot-docs#534 and polkadot-developers/polkadot-docs#575. --------- Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This PR aims to take over #557 and fix #534