Skip to content

Defer Git initialization for fresh Cargo commands - #179

Open
charliermarsh wants to merge 1 commit into
charlie/uv-preserve-unset-loader-pathfrom
charlie/uv-defer-git-initialization
Open

charliermarsh wants to merge 1 commit into
charlie/uv-preserve-unset-loader-pathfrom
charlie/uv-defer-git-initialization

Conversation

@charliermarsh

@charliermarsh charliermarsh commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

Fresh Cargo commands initialize libgit2 and its TLS context even when they never access Git. Register the CLI’s Git policy at startup and apply it before repository access or workers that may need it. Keep certificate probing at startup and preserve library users’ ownership validation.

On fresh, unchanged uv commands against the original #175, Cargo userspace instructions fell 3.98% for cargo check and 3.39% for cargo test --no-run (12 pairs each). Native wall-time results were inconclusive. The measurements predate the restack; raw data and reproduction details are available separately.

@charliermarsh
charliermarsh force-pushed the charlie/uv-defer-git-initialization branch from 8a5d151 to 19718e6 Compare October 21, 2026 11:33
@charliermarsh
charliermarsh changed the base branch from charlie/ruff-devloop-cargo-metadata to charlie/uv-preserve-unset-loader-path October 21, 2026 11:33
@charliermarsh
charliermarsh added this pull request to stack #166 October 21, 2026 11:33
@charliermarsh
charliermarsh marked this pull request as ready for review October 21, 2026 11:34
@charliermarsh
charliermarsh removed this pull request from stack #166 October 23, 2026 16:31
@charliermarsh
charliermarsh added this pull request to stack #227 October 23, 2026 16:32
@charliermarsh
charliermarsh removed this pull request from stack #227 October 25, 2026 13:06
@charliermarsh
charliermarsh added this pull request to stack #241 October 25, 2026 13:06
@charliermarsh
charliermarsh removed this pull request from stack #241 October 27, 2026 02:57
@charliermarsh
charliermarsh added this pull request to stack #252 October 27, 2026 02:57
@charliermarsh
charliermarsh removed this pull request from stack #252 October 27, 2026 15:06
@charliermarsh
charliermarsh added this pull request to stack #255 October 27, 2026 15:06
@charliermarsh
charliermarsh removed this pull request from stack #255 October 27, 2026 21:36
@charliermarsh
charliermarsh added this pull request to stack #257 October 27, 2026 21:36
@charliermarsh
charliermarsh removed this pull request from stack #257 October 28, 2026 00:23
@charliermarsh
charliermarsh added this pull request to stack #259 October 28, 2026 00:23
@charliermarsh
charliermarsh removed this pull request from stack #259 October 28, 2026 17:21
@charliermarsh
charliermarsh added this pull request to stack #272 October 28, 2026 17:21
@charliermarsh
charliermarsh removed this pull request from stack #272 October 28, 2026 17:42
@charliermarsh
charliermarsh added this pull request to stack #273 October 28, 2026 17:42
@charliermarsh
charliermarsh removed this pull request from stack #273 October 29, 2026 04:52
@charliermarsh
charliermarsh added this pull request to stack #278 October 29, 2026 04:53
@charliermarsh
charliermarsh removed this pull request from stack #278 October 29, 2026 14:06
@charliermarsh
charliermarsh added this pull request to stack #290 October 29, 2026 14:06
@charliermarsh
charliermarsh removed this pull request from stack #290 October 30, 2026 02:25
@charliermarsh
charliermarsh added this pull request to stack #295 October 30, 2026 02:25
@charliermarsh
charliermarsh removed this pull request from stack #295 October 31, 2026 13:06
@charliermarsh
charliermarsh added this pull request to stack #329 October 31, 2026 13:07
@charliermarsh
charliermarsh removed this pull request from stack #329 October 31, 2026 18:02
@charliermarsh
charliermarsh added this pull request to stack #331 October 31, 2026 18:02
@charliermarsh
charliermarsh removed this pull request from stack #331 November 1, 2026 01:58
@charliermarsh
charliermarsh added this pull request to stack #364 November 1, 2026 01:58
@charliermarsh
charliermarsh removed this pull request from stack #364 November 1, 2026 11:41
@charliermarsh
charliermarsh added this pull request to stack #383 November 1, 2026 11:41
@charliermarsh
charliermarsh removed this pull request from stack #383 November 1, 2026 18:29
@charliermarsh
charliermarsh force-pushed the charlie/uv-defer-git-initialization branch from 19718e6 to dcb724b Compare November 17, 2026 06:26
@charliermarsh
charliermarsh added this pull request to stack #542 November 17, 2026 06:29
@charliermarsh
charliermarsh force-pushed the charlie/uv-defer-git-initialization branch from dcb724b to a7b1fb7 Compare November 17, 2026 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant