Skip to content

Skip build-system warning construction when warnings are disabled - #2724

Closed
charliermarsh wants to merge 1 commit into
mainfrom
charlie/codex-uv-build-lazy-warnings
Closed

charliermarsh wants to merge 1 commit into
mainfrom
charlie/codex-uv-build-lazy-warnings

Conversation

@charliermarsh

@charliermarsh charliermarsh commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Summary

We only check the build-system table for warnings when user-facing warnings are enabled. The standalone uv-build binary 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-size profile, uv-build decreases from 3,301,624 to 3,290,176 bytes (11,448 bytes) against main at 725b74bff.

@codspeed

codspeed Bot commented Oct 14, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 15.22%

⚠️ 8 benchmarks spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

⚡ 1 improved benchmark
✅ 68 untouched benchmarks
⏩ 35 skipped benchmarks1

Performance Changes

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

Open in CodSpeed

Footnotes

  1. 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. ↩

  2. 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. ↩

@charliermarsh
charliermarsh marked this pull request as ready for review October 14, 2026 19:23
@astral-automations-bot

Copy link
Copy Markdown

Promoted to #22568.

This branch was successfully deployed

1 active deployment
automations — 154af453 Deployed Oct 14, 2026 by charliermarsh via review-code-quality / code quality review #10039
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal A refactor or improvement that is not user-facing performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant