Repository navigation
Conversation
zaniebot
force-pushed
the
zb/marker-interner-node-ids
branch
from
September 24, 2026 00:16
6bde299 to
166a8ed
Compare
Merging this PR will not alter performance
Performance Changes
Comparing Footnotes |
astral-automations-bot
Bot
force-pushed
the
zb/allocator-api-benchmarks
branch
from
October 1, 2026 22:28
117c9ba to
5a553de
Compare
astral-automations-bot
Bot
force-pushed
the
zb/allocator-api-benchmarks
branch
from
October 7, 2026 21:36
5a553de to
20f977d
Compare
astral-automations-bot
Bot
force-pushed
the
zb/allocator-api-benchmarks
branch
from
October 18, 2026 03:36
83e15e4 to
ecc92a8
Compare
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 interner owns each decision node in its shared store and also clones the node, including its outgoing edge ranges, into the uniqueness map. Index the immutable shared nodes by
NodeIdinstead. Hashing and equality still use the complete node, while the index retains only an ID and new nodes move directly into their shared storage.Hyperfine 2.0.0 measurements of e18f413b2 → 166a8ed8c 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.
All seven runtime intervals indicate reductions. The five distinct-marker workloads reduced elapsed time by 15.90–34.05% and peak RSS by 2.77–96.32 MiB. The two shared-marker controls show smaller runtime reductions of 1.94% and 0.68%, with inconclusive RSS changes. The largest RSS reduction is in the 32,768-edge case: 271.41 MiB to 175.09 MiB. RSS is Hyperfine's Linux
wait4peak, not an allocation count or summed simultaneous process-tree memory.Earlier measurements
Earlier benchmark study:
In paired macOS arm64 measurements that construct 50,000 distinct version/extra expressions per fresh process, this reduces CPU by 13.4% (95% confidence interval: 11.1% to 15.5%). Separate allocator instrumentation recorded retained requested heap bytes falling from 209,813,019 to 113,344,027, or 46.0%, and total requested bytes falling from 330,768,238 to 137,831,726; allocation-call count was unchanged. These are requested heap bytes, not RSS. Both builds use the same Rust nightly,
profilingprofile, and production allocator. Repeated parsing of 812 real Jupyter dependency requirements shows no clear gain, and offline Jupyter and Airflow resolution do not establish a command-level speedup.