Repository navigation
Skip build-system warning construction when warnings are disabled - #2724
charliermarsh wants to merge 1 commit into
Conversation
Merging this PR will improve performance by 15.22%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ⚡ | Simulation | from_hex/uppercase[48] |
341 µs | 296 µs | +15.22% |
Tip
Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.
Comparing charlie/codex-uv-build-lazy-warnings (154af45) with main (5a94b66)2
Footnotes
-
35 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
-
No successful run was found on
main(725b74b) during the generation of this report, so 5a94b66 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩
|
Promoted to #22568. |
Summary
We only check the build-system table for warnings when user-facing warnings are enabled. The standalone
uv-buildbinary never enables them, so the linker can discard the warning construction and version checks. The bundled backend retains the same warnings and deduplication.On Linux x86_64 with Rust 1.99.0 and the stripped
minimal-sizeprofile,uv-builddecreases from 3,301,624 to 3,290,176 bytes (11,448 bytes) againstmainat725b74bff.