Skip to content

Tidy news fragments and refresh benchmark tables for 7.0.0 - #1597

Merged
asvetlov merged 1 commit into
aio-libs:masterfrom
asvetlov:release-7.0.0-prep
Sep 26, 2026
Merged

asvetlov merged 1 commit into
aio-libs:masterfrom
asvetlov:release-7.0.0-prep

Conversation

@asvetlov

@asvetlov asvetlov commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

What do these changes do?

Prepares the news fragments for 7.0.0.

The public C API (#1480) and the watchers API (#1551) are new in this release, so the fragments describing later changes to them describe states that never shipped. They are folded into the entries that added the APIs: the visitor's identity and hash (#1552, #1561) into 1478, and the 32-watcher limit, the watcher registration race fix and the failing-callback report (#1574, #1583, #1585) into 1551. The MultiDict_SetDefault(NULL) half of 1553 is dropped for the same reason.

Intermediate header names that never shipped are removed as well: 1510 no longer mentions deferred_decref.h, which #1530 merged into reflist.h, and 1513 names debug.h directly, so 1576 goes. 1572, a fix to a tool added this cycle, is folded into 1529. 1560 and the last sentence of 1556 go too, since the release refresh of the benchmark tables supersedes those intermediate ones.

Finally, the fragments that did not lead with a past-tense verb or described the change as "now ..." are rewritten per AGENTS.md.

It also refreshes the tables in docs/benchmark.rst per RELEASE.md step 2; they were last collected at 6e6ac72 (#1563). Against that, most rows got faster: for k, v in d.items() 58% to 66% fewer instructions on both builds, popitem() 32% to 54%, and CIMultiDict lookups 12% to 38% (get() miss, pop(), setdefault()). Case-sensitive MultiDict construction, insertion, deletion and pop() got 5% to 12% slower, most on the free-threaded build (cls(items) +10%, 20-item cls(items) +12%, pop() +10%). The pure-Python slowdown quoted in the README and the docs index changes from a 7 to 80 times range, which already left out the empty constructor at 105 times, to its average: about 40 times (geometric mean over the 20 operations, 38x for MultiDict and 36x for CIMultiDict).

Are there changes in behavior for the user?

No.

Is it a substantial burden for the maintainers to support this?

No.

Related issue number

N/A

Checklist

  • I think the code is well written
  • Unit tests for the changes exist (N/A, changelog only)
  • Documentation reflects the changes
  • If you provide code modification, please add yourself to CONTRIBUTORS.txt (N/A)
  • Add a new news fragment into the CHANGES/ folder
  • make doc-spelling passes and any new technical words are added to docs/spelling_wordlist.txt

Drafted with Claude Code (Claude Opus 5.5); pending review by @asvetlov before leaving draft.

Agent run details (optional, for reviewers)

python -Im towncrier build --draft --version 7.0.0 renders cleanly. The symlinked pairs 1512 -> 1492 and 1562 -> 1555, and both 1535 fragments, are intentional and left alone.

Benchmarks: benchmarks/callgrind_driver.py on CPython 3.14.7 and 3.14.7t, one fresh venv each in a separate tree, __pycache__ warmed with --self-check first. Control: 6e6ac72 re-measured in the same setup reproduces the old published table (for example 20-item cls(items) 4,163 and dict columns unchanged), so the environment is stable and the MultiDict slowdowns are real code changes between 6e6ac72 and 91d5329, not yet bisected. make doc-spelling passes.

Fold fragments describing iterations on the C API, which is new in this
release, into the entries that added it; drop superseded benchmark table
refreshes and intermediate header names; rewrite present-tense phrasing.
@codspeed

codspeed Bot commented Sep 26, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 310 untouched benchmarks


Comparing asvetlov:release-7.0.0-prep (8798fdf) with master (91d5329)

Open in CodSpeed

@asvetlov asvetlov added the bot:chronographer:skip This PR does not need to include a change note label Sep 26, 2026
@asvetlov
asvetlov marked this pull request as ready for review September 26, 2026 07:43
@asvetlov
asvetlov requested a review from webknjaz as a code owner September 26, 2026 07:43
@greptile-apps

greptile-apps Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

[Low risk] Edits changelog entries for clarity and consistency.

Do not merge until the news fragments satisfy the repository's past-tense requirement.

Reviews (1) · Last reviewed commit: "Tidy news fragments for 7.0.0"

Comment thread CHANGES/1551.feature.rst Resolved
@asvetlov
asvetlov merged commit d02502a into aio-libs:master Sep 26, 2026
62 checks passed
@asvetlov
asvetlov deleted the release-7.0.0-prep branch September 26, 2026 07:51
@asvetlov asvetlov changed the title Tidy news fragments for 7.0.0 Tidy news fragments and refresh benchmark tables for 7.0.0 Sep 26, 2026
asvetlov added a commit that referenced this pull request Sep 26, 2026
<!-- Thank you for your contribution! -->

## 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 to `1587`. `1598`
(references in `update()` only when `lower()` can run code) becomes a
symlink to `1581`, which now says the extra references are limited to
those keys. `1600` and `1601` (out-of-line slot operations and
insert-path resize) merge into one `1600` entry with `1601` symlinked to
it. Towncrier lists both numbers under each merged entry.

The tables in `docs/benchmark.rst` are refreshed per `RELEASE.md` step
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, and `CIMultiDict` lookups 15% to 39%
fewer; free-threaded `update()` got 8% to 13% cheaper. Three
case-sensitive `MultiDict` rows 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 and `pop()` 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.8x
`CIMultiDict`).

## 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

- [x] I think the code is well written
- [ ] Unit tests for the changes exist (N/A, docs and changelog only)
- [x] Documentation reflects the changes
- [ ] If you provide code modification, please add yourself to
`CONTRIBUTORS.txt` (N/A)
- [x] Add a new news fragment into the `CHANGES/` folder
- [x] `make doc-spelling` passes and any new technical words are added
to `docs/spelling_wordlist.txt`

Drafted with Claude Code (Claude Opus 5.5); pending review by @asvetlov
before leaving draft.

<details>
<summary>Agent run details (optional, for reviewers)</summary>

Benchmarks: `benchmarks/callgrind_driver.py` on CPython 3.14.7 and
3.14.7t, fresh venv per build in a separate tree at d66879b,
`__pycache__` warmed with `--self-check`, `.so` timestamps 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.0` renders
the merged entries with both issue numbers. `make doc-spelling` passes.
</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:skip This PR does not need to include a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant