Commit 0e3549d
S194: Build performance — dev profile tuning for CTO/LTO readiness
Measured baseline: 2m30s clean build, 68s test compile, 11GB debug artifacts.
Profile optimizations (universal, no system deps required):
- debug = "line-tables-only": keeps backtraces, cuts debug info ~60%
- split-debuginfo = "unpacked": faster incremental linking on Linux
- codegen-units = 256: max parallelism for local crate codegen in dev
Results: clean build 2m30s → 2m11s (13%), test compile 68s → 57s (16%),
debug artifacts 11GB → 3.9GB (64% smaller).
Documented mold/lld linker opt-in in .cargo/config.toml (additional
30-60s savings when installed). Release profiles unchanged (already
LTO + codegen-units=1 for genomeBin).
Made-with: Cursor1 parent 5ca6358 commit 0e3549d
2 files changed
Lines changed: 41 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
12 | 31 | | |
13 | 32 | | |
14 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
181 | 191 | | |
182 | | - | |
183 | 192 | | |
184 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
185 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
186 | 202 | | |
187 | 203 | | |
188 | | - | |
189 | | - | |
| 204 | + | |
| 205 | + | |
190 | 206 | | |
191 | 207 | | |
192 | 208 | | |
193 | 209 | | |
194 | | - | |
195 | | - | |
196 | 210 | | |
197 | 211 | | |
198 | 212 | | |
| |||
201 | 215 | | |
202 | 216 | | |
203 | 217 | | |
204 | | - | |
| 218 | + | |
205 | 219 | | |
206 | 220 | | |
207 | 221 | | |
| |||
0 commit comments