Skip to content

Commit 63a5928

Browse files
nhussein11PieWol
andauthored
[FIX] - Update build profiles (#575)
* update build flag tip (#557) * Update set-up-a-template.md improve wording * update compiler flag tip * fix: build profiles disclaimer * fix: profile production --------- Co-authored-by: Piet Wolff <[email protected]>
1 parent d90095a commit 63a5928

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

llms.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33237,7 +33237,9 @@ The [Polkadot SDK Parachain Template](https://github.com/paritytech/polkadot-sdk
3323733237
```
3323833238

3323933239
!!!tip
33240-
Initial compilation may take several minutes, depending on your machine specifications. Always use the `--release` flag to build optimized, production-ready artifacts.
33240+
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.
33241+
33242+
For production deployments, consider using a dedicated [`--profile production`](https://github.com/paritytech/polkadot-sdk-parachain-template/blob/v0.0.4/Cargo.toml#L42-L45){target=\_blank} flag - this can provide an additional 15-30% performance improvement over the standard `--release` profile.
3324133243

3324233244
4. Upon successful compilation, you should see output similar to:
3324333245
<div id="termynal" data-termynal>

tutorials/polkadot-sdk/parachains/zero-to-hero/set-up-a-template.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ The [Polkadot SDK Parachain Template](https://github.com/paritytech/polkadot-sdk
8484
```
8585

8686
!!!tip
87-
Initial compilation may take several minutes, depending on your machine specifications. Always use the `--release` flag to build optimized, production-ready artifacts.
87+
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.
88+
89+
For production deployments, consider using a dedicated [`--profile production`](https://github.com/paritytech/polkadot-sdk-parachain-template/blob/v0.0.4/Cargo.toml#L42-L45){target=\_blank} flag - this can provide an additional 15-30% performance improvement over the standard `--release` profile.
8890

8991
4. Upon successful compilation, you should see output similar to:
9092
--8<-- 'code/tutorials/polkadot-sdk/parachains/zero-to-hero/set-up-a-template/compilation-output.html'

0 commit comments

Comments
 (0)