Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The marker uniqueness table recomputes each stored node's hash when it grows, walking and hashing the node's outgoing ranges again. Store the hash alongside
NodeIdand reject unequal full hashes before comparing nodes. The shared node store remains the authority for equality.Hyperfine 2.0.0 measurements of 166a8ed8c → a9957b63c 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. Workloads that select or query an interpreter used CPython 3.12.13.Commands include
uv workspace metadata --script SCRIPT --frozen --python PYTHON --preview-features workspace-metadata. The synthetic frozen script locks contain one root and conditional leaves. Repeated expressions, distinct version-and-machine expressions, categorical values, and version exclusions exercise fresh marker interning alongside lock parsing and output formatting. Each command starts a fresh process and rebuilds its in-memory marker caches. OS pages and interpreter-query caches are warm. Frozen commands do not resolve, download, build, or install packages.Values are means, parent → head. Changes are
(head / parent - 1)with 95% confidence intervals; negative values indicate a reduction.Each 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.
The five distinct-marker workloads reduced elapsed time by 1.91–11.76%, while increasing peak RSS by 0.27–7.50 MiB. The 32,768-edge case shows the largest RSS increase alongside a 9.61% runtime reduction. Both shared-marker controls have runtime and RSS intervals that include zero. The measured benefit is a runtime/memory tradeoff in the distinct-marker workloads. RSS is Hyperfine's Linux
wait4peak, not an allocation count or summed simultaneous process-tree memory.Earlier measurements
Earlier benchmark study:
Against #2072, 31 alternating macOS arm64 process pairs that each construct 50,000 distinct version/extra expressions reduce CPU by 27.9% (95% confidence interval: 26.3% to 29.5%). Both builds use the same Rust nightly,
profilingprofile, and production allocator. Retained requested heap storage increases from 113,344,027 to 115,441,179 bytes, or 1.9%, because each table entry stores an additionalu64. Repeated parsing of 812 real Jupyter requirements is inconclusive (0.2% less CPU, interval -0.5% to 0.9%). Offline Jupyter and Airflow resolution do not establish a command-level speedup.