Repository navigation
Fold new fragments and refresh benchmark tables for 7.0.0 - #1602
Merged
Merged
Conversation
asvetlov
marked this pull request as ready for review
September 26, 2026 16:48
Contributor
|
Contributor
Comments Outside DiffThese findings sit on lines the diff does not cover, so they could not be posted inline. Each one leaves this list once its file changes.
|
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.
What do these changes do?
Finishes the 7.0.0 changelog and refreshes the benchmark tables, the part of #1597 that did not make it in before it merged.
The four PRs that followed the bisect fix slowdowns introduced earlier in this cycle, so they are folded into the entries whose changes they amend rather than listed as speedups over 6.9.1.
1599(one thread-local version counter) becomes a symlink to1587.1598(references inupdate()only whenlower()can run code) becomes a symlink to1581, which now says the extra references are limited to those keys.1600and1601(out-of-line slot operations and insert-path resize) merge into one1600entry with1601symlinked to it. Towncrier lists both numbers under each merged entry.The tables in
docs/benchmark.rstare refreshed perRELEASE.mdstep 2, collected at d66879b. Against the previous tables (6e6ac72),for k, v in d.items()needs 58% to 66% fewer instructions on both builds,popitem()34% to 54% fewer, andCIMultiDictlookups 15% to 39% fewer; free-threadedupdate()got 8% to 13% cheaper. Three case-sensitiveMultiDictrows stay 5% to 6% above the old tables:del d[key]on the GIL build (the watcher check from #1551, still open), and 20-item construction andpop()on the free-threaded build.The README and docs index quoted the pure-Python backend at "7 to 80 times" the C extension, a range that already left out the empty constructor at 105 times; they now give the average, about 40 times (geometric mean over the 20 operations: 38.5x
MultiDict, 36.8xCIMultiDict).Are there changes in behavior for the user?
No.
Is it a substantial burden for the maintainers to support this?
No.
Related issue number
Follow-up to #1597.
Checklist
CONTRIBUTORS.txt(N/A)CHANGES/foldermake doc-spellingpasses and any new technical words are added todocs/spelling_wordlist.txtDrafted with Claude Code (Claude Opus 5.5); pending review by @asvetlov before leaving draft.
Agent run details (optional, for reviewers)
Benchmarks:
benchmarks/callgrind_driver.pyon CPython 3.14.7 and 3.14.7t, fresh venv per build in a separate tree at d66879b,__pycache__warmed with--self-check,.sotimestamps checked. The previous tables' commit 6e6ac72, re-measured earlier today in the same setup, reproduced them exactly, so the comparison above is between code, not environments.Changelog:
python -Im towncrier build --draft --version 7.0.0renders the merged entries with both issue numbers.make doc-spellingpasses.