• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

aio-libs / multidict / 38289122748
86%

Build:
DEFAULT BRANCH: master
Ran 12 Oct 2026 06:11PM UTC
Jobs 1
Files 50
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Oct 2026 06:10PM UTC coverage: 85.863%. Remained the same
38289122748

push

github

web-flow
Fold _md_replace_identity() into md_replace() (#1788)

<!-- Thank you for your contribution! -->

## What do these changes do?

Folds `_md_replace_identity()`, the single-caller helper behind `d[key]
= v`, into `md_replace()` in `_multilib/hashtable.h`. A failed hash now
releases the identity and returns early; the identity is still released
last, after the watcher flush. The pure-Python backend has no equivalent
helper and is unaffected.

Callgrind (`benchmarks/callgrind_driver.py --include-multidict-only`,
3.14.7 and 3.14.7t, against master 2933772c): GIL is flat, no row moved
by more than 0.2%. FT `d[key] = v` drops 0.6% to 0.85% (4 to 6
instructions per call) for existing keys, new keys and istr keys, on
both `MultiDict` and `CIMultiDict`.

## Are there changes in behavior for the user?

No.

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

No; it removes a helper.

## Related issue number

N/A

## Checklist

- [x] I think the code is well written
- [ ] Unit tests for the changes exist: N/A, a refactor covered by the
existing suite
- [ ] Documentation reflects the changes: N/A
- [ ] 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`

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

Tests: `pytest -q` passed on 3.11.13 GIL C extension (4274 passed),
3.14.7t C extension (4255 passed), and 3.11.13 pure Python with
`MULTIDICT_NO_EXTENSIONS=1 --no-c-extensions` (1697 passed).
Inlining: `tools/check_inlining.py` ok on 3.14.7 and 3.14.7t.
Docs: `make doc-spelling` passed.

| FT row | impl | master | this PR | delta |
| --- | --- | ---: | ---: | ---: |
| `d[key] = v`, existing key | MultiDict | 470.7 | 466.7 | -0.85% |
| `d[key] = v`, existing key | CIMultiDict | 501.9 | 497.9 | -0.80% |
| `d[key] = v`, new key | MultiDict | ... (continued)

842 of 1684 branches covered (50.0%)

Branch coverage included in aggregate %.

9799 of 10709 relevant lines covered (91.5%)

1.83 hits per line

Jobs
ID Job ID Ran Files Coverage
1 MyPy - 38289122748.1 12 Oct 2026 06:11PM UTC 100
85.86
GitHub Action Run
Source Files on build 38289122748
  • Tree
  • List 50
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #38289122748
  • 85f331e2 on github
  • Prev Build on master (#38288796215)
  • Next Build on master (#38356582173)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc