Skip to content

Borrow hash strategies in lock setup and the resolver provider - #21541

Merged
charliermarsh merged 1 commit into
mainfrom
charlie/uv-borrow-build-hashes
Sep 8, 2026
Merged

charliermarsh merged 1 commit into
mainfrom
charlie/uv-borrow-build-hashes

Conversation

@charliermarsh

Copy link
Copy Markdown
Member

We borrow the selected build hash strategy in do_lock and the caller's strategy in DefaultResolverProvider, avoiding unnecessary strategy clones and hash-map reference-count updates. The resolver thread, lookahead results, and cached version maps retain owned policy snapshots.

Stacked on #21540. Follows up on #21223 (comment).

@charliermarsh charliermarsh added the internal A refactor or improvement that is not user-facing label Sep 8, 2026
@charliermarsh
charliermarsh requested a review from zanieb September 8, 2026 17:40
@charliermarsh
charliermarsh force-pushed the charlie/uv-borrow-build-hashes branch from 3a8ad1b to 151e7a8 Compare September 8, 2026 17:56
Base automatically changed from charlie/uv-flat-index-policy to main September 8, 2026 18:54
@charliermarsh
charliermarsh force-pushed the charlie/uv-borrow-build-hashes branch from 151e7a8 to a01de91 Compare September 8, 2026 19:01
@charliermarsh
charliermarsh enabled auto-merge (squash) September 8, 2026 19:01
@charliermarsh
charliermarsh merged commit cc85fa2 into main Sep 8, 2026
59 checks passed
@charliermarsh
charliermarsh deleted the charlie/uv-borrow-build-hashes branch September 8, 2026 19:21

This branch was previously deployed

1 inactive deployment
automations — a01de911 Deployed Sep 8, 2026 by charliermarsh via review / security review #46115
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.

2 participants