Repository navigation
Conversation
e5ff5bd to
1aa2a43
Compare
1aa2a43 to
ab7a89b
Compare
ab7a89b to
3b3fec0
Compare
3d33014 to
a72cc8a
Compare
a72cc8a to
46048c8
Compare
Merging this PR will improve performance by ×9.3
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ⚡ | WallTime | unzip_wheel_many_files |
371 ms | 12 ms | ×31 |
| ⚡ | WallTime | install_wheel_many_files |
385 ms | 13.6 ms | ×28 |
| ⚡ | WallTime | prepare_wheel_many_files |
383.4 ms | 14.7 ms | ×26 |
| ⚡ | WallTime | unpack_sdist_many_files |
317.2 ms | 36 ms | ×8.8 |
| ⚡ | WallTime | resolve_warm_jupyter_universal |
87.6 ms | 11.7 ms | ×7.5 |
| ⚡ | WallTime | resolve_warm_jupyter |
17.4 ms | 2.4 ms | ×7.2 |
| ⚡ | WallTime | discover_workspace_from_all_members_with_excludes |
52.7 ms | 8.1 ms | ×6.5 |
| ⚡ | WallTime | discover_workspace_from_all_members |
50.5 ms | 7.9 ms | ×6.4 |
| ⚡ | WallTime | run_python_version_synthetic_workspace |
268.4 ms | 42.3 ms | ×6.3 |
| ⚡ | WallTime | resolve_warm_airflow |
233.2 ms | 41.8 ms | ×5.6 |
| ⚡ | WallTime | hash_sha256 |
1,165.6 µs | 401.2 µs | ×2.9 |
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/bughuntperf/225-root-fork-markers (6030772) with main (b7c8c62)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(ba5833f) during the generation of this report, so b7c8c62 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩
46048c8 to
8f32d7b
Compare
8f32d7b to
6030772
Compare
Lockfile export, tree construction, and workspace metadata can rebuild the same PEP 508 fork-marker union for every root or dependency-group requirement that selects a split package. Repeated requirements therefore repeat work that depends only on the selected locked package.
Index the needed root packages by name and cache each candidate’s combined fork marker for reuse in root matching and metadata reachability. Different versions remain separate, and packages without fork markers remain unconditional.
Hyperfine 2.0.0 measurements of a3eb76f85 → 60307726f used release builds of the complete CLI with
rustc 1.99.0 (b940084d7 2026-09-28)on an AMD EPYC-Genoa Linux VM, pinned to four CPUs. Output went to/dev/null. The supplied interpreter was CPython 3.12.13.uv export, universal JSONuv tree, anduv workspace metadataread synthetic frozen script locks. Each lock contains distinct root requirements for one package name. In split cases, the listed fork width applies separately to versions 1 and 2; version 3 has one complementary marker for other platforms. The controls use one unconditional package without fork markers. Each command starts a fresh process, without new resolution. OS pages and interpreter-query caches are warm. Both revisions read the same frozen lock.Values are means, parent → head. Changes are
(head / parent - 1)with 95% confidence intervals; negative values indicate a reduction.uv export/ 1 root requirement / 1 fork marker each for versions 1 and 2uv export/ 8 root requirements / 16 fork markers each for versions 1 and 2uv export/ 128 root requirements / 16 fork markers each for versions 1 and 2uv export/ 512 root requirements / 16 fork markers each for versions 1 and 2uv export/ 512 root requirements / 64 fork markers each for versions 1 and 2uv export/ 128 root requirements / 256 fork markers each for versions 1 and 2uv tree/ 512 root requirements / 64 fork markers each for versions 1 and 2uv workspace metadata/ 512 root requirements / 64 fork markers each for versions 1 and 2uv export/ 512 root requirements / unconditional package / no fork markersuv workspace metadata/ 512 root requirements / unconditional package / no fork markersEach workload used ten comparison blocks with alternating revision order, one warmup followed by three measured runs per revision in each block (30 measurements per revision). The pointwise 95% percentile-bootstrap intervals use 20,000 resamples of paired block means and retain all samples. They estimate within-run uncertainty, not variation across machines, independent builds, or separate benchmark campaigns.
All ten elapsed-time intervals include zero, so this study does not establish an elapsed-time change for these workloads. Seven export cases show peak RSS reductions of about 0.17–0.50 MiB, including the unconditional control; the unconditional metadata case increases by about 0.07 MiB, and the other two RSS intervals include zero. The largest export case uses about 5.6 GiB in both revisions. These are complete-command measurements and do not isolate fork-marker union costs. RSS is Hyperfine's Linux
wait4peak, not an allocation count or summed simultaneous process-tree memory.