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

Optimize Import Time by Deferring SSL Context Loading #102

Closed
wants to merge 1 commit into from

Conversation

dosine-staging[bot]
Copy link

@dosine-staging dosine-staging bot commented Sep 2, 2024

This PR addresses the issue of increased import time caused by changes in psf#6667. The expensive load_verify_locations() call has been deferred by moving it into a utility function get_ssl_context(), which is invoked after import. This change should help reduce the import time by approximately 25%.

@SamStenner SamStenner closed this Sep 4, 2024
@SamStenner SamStenner deleted the cosine/fix/import-time-increase branch September 4, 2024 10:36
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