File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,9 @@ especially for release builds.
46
46
47
47
## How does this perform?
48
48
49
+ Some build timings for clean release builds of a crate depending on various
50
+ specific large API crates:
51
+
49
52
| ** Dependency Crate** | ** Before** | ** ` hint-mostly-unused ` ** | ** Delta** |
50
53
| :- | -: | -: | -: |
51
54
| ` 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
64
67
test a substantial swath of the API), may result in redoing code generation for
65
68
the same items repeatedly.
66
69
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
+
67
73
## Plumbing this through Cargo with profiles
68
74
69
75
In order to support compiling specific dependencies with this option, Cargo
You can’t perform that action at this time.
0 commit comments