Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use shared client in Git fetch implementation #4487

Merged
merged 3 commits into from
Jun 24, 2024
Merged

Conversation

charliermarsh
Copy link
Member

Summary

It turns out that the Git fetch implementation is initializing its own client, which can be really expensive on macOS (due to loading native certificates) and bypasses any of our middleware. This PR modifies the Git implementation to accept a shared client.

@charliermarsh charliermarsh added the performance Potential performance improvement label Jun 24, 2024
Copy link
Member

@ibraheemdev ibraheemdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Base automatically changed from charlie/sub to main June 24, 2024 21:09
@charliermarsh charliermarsh merged commit 9905521 into main Jun 24, 2024
47 checks passed
@charliermarsh charliermarsh deleted the charlie/git-client branch June 24, 2024 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Potential performance improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants