Skip to content

Commit 003dedf

Browse files
committed
Clarify performance numbers
1 parent 24150b9 commit 003dedf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

content/inside-rust/call-for-testing-hint-mostly-unused.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ especially for release builds.
4646

4747
## How does this perform?
4848

49+
Some build timings for clean release builds of a crate depending on various
50+
specific large API crates:
51+
4952
| **Dependency Crate** | **Before** | **`hint-mostly-unused`** | **Delta** |
5053
| :- | -: | -: | -: |
5154
| `windows`, all Graphics/UI features | 18.3s | 10.7s | -42% |
@@ -64,6 +67,9 @@ in multiple different crates or binaries (e.g. multiple test binaries that each
6467
test a substantial swath of the API), may result in redoing code generation for
6568
the same items repeatedly.
6669

70+
Also note that this only provides a performance win if you are rebuilding the
71+
dependency. If you're only rebuilding the top-level crate, this won't help.
72+
6773
## Plumbing this through Cargo with profiles
6874

6975
In order to support compiling specific dependencies with this option, Cargo

0 commit comments

Comments
 (0)