Skip to content

Remove the legacy hash digest cache representation - #22132

Merged
charliermarsh merged 1 commit into
charlie/0.13-sdist-revision-fastidfrom
charlie/0.13-remove-hash-digest-wire
Oct 1, 2026
Merged

charliermarsh merged 1 commit into
charlie/0.13-sdist-revision-fastidfrom
charlie/0.13-remove-hash-digest-wire

Conversation

@charliermarsh

Copy link
Copy Markdown
Member

Reapplies #22060 for 0.13.

We serialize HashDigest directly with Serde and rkyv, removing the legacy HashDigestWire adapter. Archived digests validate their length and hexadecimal characters through Digest<BYTES> and normalize to lowercase on deserialization.

The cache bumps cover the source-distribution, wheel, simple-index, and flat-index buckets that contain these hashes. Lockfile and index hash formats are unchanged.

We serialize `HashDigest` directly with Serde and rkyv, removing the
legacy `HashDigestWire` adapter. Archived digests validate their length
and hexadecimal characters through `Digest<BYTES>` and normalize to
lowercase on deserialization.

The cache bumps cover the source-distribution, wheel, simple-index, and
flat-index buckets that contain these hashes. Lockfile and index hash
formats are unchanged.

(cherry picked from commit c426475)
@charliermarsh
charliermarsh added this pull request to stack #22137 October 1, 2026 16:40
@charliermarsh charliermarsh added the internal A refactor or improvement that is not user-facing label Oct 1, 2026
@charliermarsh
charliermarsh merged commit 33ee072 into release/0.13.0 Oct 1, 2026
61 checks passed
@charliermarsh
charliermarsh deleted the charlie/0.13-remove-hash-digest-wire branch October 1, 2026 16:49
@codspeed

codspeed Bot commented Oct 1, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 5.57%

⚡ 1 improved benchmark
✅ 52 untouched benchmarks
⏩ 47 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
⚡ WallTime run_python_version_synthetic_workspace 272.7 ms 258.3 ms +5.57%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing charlie/0.13-remove-hash-digest-wire (021bae9) with main (e71ab8f)

Open in CodSpeed

Footnotes

  1. 47 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

zanieb pushed a commit that referenced this pull request Oct 7, 2026
Reapplies #22060 for 0.13.

We serialize `HashDigest` directly with Serde and rkyv, removing the
legacy `HashDigestWire` adapter. Archived digests validate their length
and hexadecimal characters through `Digest<BYTES>` and normalize to
lowercase on deserialization.

The cache bumps cover the source-distribution, wheel, simple-index, and
flat-index buckets that contain these hashes. Lockfile and index hash
formats are unchanged.
zanieb pushed a commit that referenced this pull request Oct 9, 2026
Reapplies #22060 for 0.13.

We serialize `HashDigest` directly with Serde and rkyv, removing the
legacy `HashDigestWire` adapter. Archived digests validate their length
and hexadecimal characters through `Digest<BYTES>` and normalize to
lowercase on deserialization.

The cache bumps cover the source-distribution, wheel, simple-index, and
flat-index buckets that contain these hashes. Lockfile and index hash
formats are unchanged.
astral-automations-bot Bot pushed a commit to astral-sh/uv-dev that referenced this pull request Oct 10, 2026
Reapplies astral-sh#22060 for 0.13.

We serialize `HashDigest` directly with Serde and rkyv, removing the
legacy `HashDigestWire` adapter. Archived digests validate their length
and hexadecimal characters through `Digest<BYTES>` and normalize to
lowercase on deserialization.

The cache bumps cover the source-distribution, wheel, simple-index, and
flat-index buckets that contain these hashes. Lockfile and index hash
formats are unchanged.

This branch was previously deployed

1 inactive deployment
automations — 021bae96 Deployed Oct 1, 2026 by charliermarsh via review / security review #48836
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal A refactor or improvement that is not user-facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant