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.
Marker conjunctions currently cache
(left, right)and(right, left)separately, even though both operations produce the same canonical marker. Order the cache key by node ID so the reverse operation reuses the first result without changing the traversal order used to construct it.Hyperfine 2.0.0 measurements of 40f6dcc4e → 3c0b15962 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. Pairs of marker operands occur twice in the same or reversed order at three scales; an ordinary short-marker case is included. Complete marker strings stay below the whole-marker-cache threshold. 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.
Six of seven elapsed-time intervals include zero. The 16,384-edge reversed-order case shows a 5.06% reduction (95% CI 0.68–10.14% lower); the other runtime estimates are inconclusive in this run. Three workloads show small peak-RSS reductions of 0.13–0.19 MiB, while the other four RSS intervals include zero. RSS is Hyperfine's Linux
wait4peak, not an allocation count or summed simultaneous process-tree memory.Earlier measurements
Earlier benchmark study:
On macOS arm64 with the same Rust nightly for both revisions, the
profilingprofile, and the production allocator, 51 paired runs of 20,000 fresh operand pairs reduce conjunction wall time by 28.0% (95% confidence interval: 25.2% to 30.7%). Requested allocation bytes fall from 22.2 MB to 18.9 MB in that synthetic workload. Pairing adjacent markers from 812 real Jupyter requirements reduces conjunction wall time by 28.9% across 101 paired runs (interval: 27.3% to 30.5%); parsing those requirements is inconclusive (-0.1% in the improvement direction, interval -1.0% to 0.8%). These component measurements do not establish an end-to-end command speedup.