Skip to content

Commit 916b8a9

Browse files
committed
Clarify code generation vs build times benefits
1 parent 2a10478 commit 916b8a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/src/guide/build-performance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ This will:
3838
- Provide an opt-in for when debugging via [`--profile debugging`](../reference/profiles.md#custom-profiles)
3939

4040
Trade-offs:
41-
- ✅ Faster build times
41+
- ✅ Faster code generation (`cargo build`)
4242
- ✅ Faster link times
4343
- ✅ Smaller disk usage of the `target` directory
4444
- ❌ Requires a full rebuild to have a high-quality debugger experience
@@ -83,7 +83,7 @@ rustflags = "-Zthreads=8"
8383
This [`rustflags`][build.rustflags] will enable the [parallel frontend][parallel-frontend-blog] of the Rust compiler, and tell it to use `n` threads. The value of `n` should be chosen according to the number of cores available on your system, although there are diminishing returns. We recommend using at most `8` threads.
8484

8585
Trade-offs:
86-
- ✅ Faster build times
86+
- ✅ Faster build times (both `cargo check` and `cargo build`)
8787
-**Requires using nightly Rust and an [unstable Rust feature][parallel-frontend-issue]**
8888

8989
## Reducing built code

0 commit comments

Comments
 (0)