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

Small improvements to import performance #7590

Merged
merged 4 commits into from
Sep 25, 2023
Merged

Conversation

samuelcolvin
Copy link
Member

@samuelcolvin samuelcolvin commented Sep 25, 2023

The easiest wins from #7423 - avoiding any imports of pydantic.deprecated at import time.

Selected Reviewer: @davidhewitt

@cloudflare-pages
Copy link

cloudflare-pages bot commented Sep 25, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0a5e5cc
Status: ✅  Deploy successful!
Preview URL: https://bca5760d.pydantic-docs2.pages.dev
Branch Preview URL: https://import-performance.pydantic-docs2.pages.dev

View logs

@samuelcolvin samuelcolvin added the relnotes-performance Used for performance improvements. label Sep 25, 2023
@samuelcolvin
Copy link
Member Author

please review

@samuelcolvin samuelcolvin merged commit cc4b8c2 into main Sep 25, 2023
60 checks passed
@samuelcolvin samuelcolvin deleted the import-performance branch September 25, 2023 10:44
@ofek
Copy link
Contributor

ofek commented Sep 26, 2023

This reduced import time for me on Windows by ~8-9 ms

@ofek ofek mentioned this pull request Sep 26, 2023
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review relnotes-performance Used for performance improvements.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants