Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-109653: What's new: Note improved import times for several stdlib modules in Python 3.13#118697

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
AlexWaygood merged 2 commits intopython:mainfromAlexWaygood:whatsnew-scoobydoo
May 7, 2024

Conversation

AlexWaygood
Copy link
Member

@AlexWaygoodAlexWaygood commentedMay 7, 2024
edited by github-actionsbot
Loading

danielhollas and ofek reacted with heart emoji
@AlexWaygoodAlexWaygood requested a review fromhugovkMay 7, 2024 10:59
@bedevere-appbedevere-appbot added docsDocumentation in the Doc dir skip news awaiting core review labelsMay 7, 2024
@ambvambvenabled auto-merge (squash)May 7, 2024 11:04
Copy link
Member

@hugovkhugovk left a comment

Choose a reason for hiding this comment

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

Would be nice to include some numbers if appropriate, maybe as a range?

Something like:

 * Several standard library modules have had their import times significantly-  improved.+  improved, from around XX% to YY%.

@AlexWaygood
Copy link
MemberAuthor

Would be nice to include some numbers if appropriate, maybe as a range?

I'll add some ballpark figures.

I'mslightly wary of being too precise, because you'll only e.g. enjoy thetyping import speedup if you've also avoided importingcontextlib andre (and anything that might importcontextlib andre) elsewhere in your code. If you're writing a small CLI tool where startup times are really important, it's more likely that you're already being careful about that kind of thing, so it's more likely you'll see an improvement. But as soon as you e.g.import asyncio, it's game over.

hugovk reacted with thumbs up emoji

@hugovkhugovkdisabled auto-mergeMay 7, 2024 11:13
@hugovk
Copy link
Member

Yep, a rough ballpark is perfect. As you say, this really helps CLIs rather than big apps or libraries. People who really care can click through to the PRs to see the full details.

AlexWaygood reacted with thumbs up emoji

@AlexWaygoodAlexWaygood requested a review fromhugovkMay 7, 2024 11:17
@AlexWaygoodAlexWaygoodenabled auto-merge (squash)May 7, 2024 11:34
@AlexWaygoodAlexWaygood merged commit44a9f3d intopython:mainMay 7, 2024
@AlexWaygoodAlexWaygood deleted the whatsnew-scoobydoo branchMay 7, 2024 11:34
SonicField pushed a commit to SonicField/cpython that referenced this pull requestMay 8, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@hugovkhugovkhugovk approved these changes

Assignees
No one assigned
Labels
docsDocumentation in the Doc dirskip news
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Improve import time of various stdlib modules
2 participants
@AlexWaygood@hugovk

[8]ページ先頭

©2009-2025 Movatter.jp