Repository navigation
Commit af8ba86
authored
Use line tables by default for development builds (#21546)
We use `line-tables-only` debug information by default for development and test builds to reduce compilation time while retaining file names and line numbers in backtraces. Optimization levels and debug assertions stay at their development defaults.
Reducing debug information improved one captured uv edit/build/test session on an Apple M5 Max with released Ohm 1.98.0-10 and Apple's linker:
| Debug information | Median command total | Less time |
| --- | ---: | ---: |
| Full | 60.75s | — |
| Line tables | 48.21s | 20.6% |
| None | 45.34s | 25.4% |
Each setting ran four times with development and test builds already warm; both reduced-debug settings won all four paired comparisons. These measurements changed the dev/test debug settings through environment overrides. They exclude initial compilation and do not establish gains for other sessions, release builds, or `cargo check`.1 parent 4b53f66 commit af8ba86
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
385 | 392 | | |
386 | 393 | | |
387 | 394 | | |
| |||
0 commit comments