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

aio-libs / multidict / 36387352231
87%

Build:
DEFAULT BRANCH: master
Ran 28 Sep 2026 06:37AM UTC
Jobs 1
Files 45
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

28 Sep 2026 05:49AM UTC coverage: 87.272%. Remained the same
36387352231

push

github

web-flow
Drop a hash table through one release helper (#1618)

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

## What do these changes do?

`_md_rebuild()` and `md_clear()` each had their own `#ifdef` for
dropping a table they had just unpublished: retire it on free-threaded
builds, free it on GIL ones. `md_clear()`'s GIL arm also released the
entries with its own loop, a copy of the one `_md_free_retired()` ran
for retired tables. `_md_release_keys()` now makes the build choice for
both callers, and the one loop, `_htkeys_dispose()` (renamed from
`_md_free_retired()`), serves both the GIL release and the free-threaded
drain.

`_htkeys_dispose()` is `NOINLINE`: inlined, it grew every `md_clear()`
caller by about 400 bytes and cost `ctor_empty` 2% on GIL.

C extension only; no behaviour change.

## Are there changes in behavior for the user?

No.

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

No; it removes a duplicated loop and two `#ifdef` blocks.

## Related issue number

N/A

## Checklist

- [x] I think the code is well written
- [ ] Unit tests for the changes exist: N/A, no behaviour change;
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`

Drafted with Claude Opus 5.5 (Claude Code); reviewed by @asvetlov.

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

Callgrind (`benchmarks/callgrind_driver.py --include-multidict-only`,
`PYTHONHASHSEED=0`, CPython 3.14.7 and 3.14.7t) against master 512f00a,
MultiDict and CIMultiDict:

- GIL: every row within 0.33% (`ctor_empty` 615 -> 617 Ir).
- FT: every row within 0.36% (`copy_small` 2749 -> 2759 Ir).

Also tried and dropped: collapsing `htkeys_alloc_sized()` and
`_htkeys_alloc_raw()` into one `htkeys_allo... (continued)

779 of 1558 branches covered (50.0%)

Branch coverage included in aggregate %.

8471 of 9041 relevant lines covered (93.7%)

1.87 hits per line

Jobs
ID Job ID Ran Files Coverage
1 MyPy - 36387352231.1 28 Sep 2026 06:37AM UTC 90
87.27
GitHub Action Run
Source Files on build 36387352231
  • Tree
  • List 45
  • 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 #36387352231
  • 73e853a9 on github
  • Prev Build on master (#36350699863)
  • Next Build on master (#36391160696)
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