Repository navigation
Construct Python versions from installation key components - #22558
astral-automations-bot[bot] merged 1 commit into
Conversation
…#22558) Python installation keys already contain numeric release components and prerelease metadata, but constructing their version formats and parses those fields again. Build the version directly and keep requested minor versions as numeric pairs, while retaining the canonical version text used by markers and diagnostics. Co-authored-by: zaniebot <[email protected]>
Merging this PR will improve performance by 14.1%
|
| Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|
| ⚡ | load_python_download_catalog |
448.8 ms | 348.9 ms | +28.64% |
| ⚡ |
discover_workspace_from_all_members |
148.8 ms | 136.4 ms | +9.09% |
| ⚡ |
discover_workspace_from_all_members_with_excludes |
148.2 ms | 140 ms | +5.87% |
Tip
Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.
Comparing zb/opportunity-03-04-python-version-components (4b320a4) with main (1310268)2
Footnotes
-
80 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 1310268 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩
Python installation keys already contain numeric release components and prerelease metadata, but constructing their version formats and parses those fields again. Build the version directly and keep requested minor versions as numeric pairs, while retaining the canonical version text used by markers and diagnostics.