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

Use faster APIs to calculate paths at startup for Store packaged Python on Windows#99345

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
zooba merged 4 commits intopython:mainfromzooba:faststart
Nov 23, 2022

Conversation

zooba
Copy link
Member

These APIs were added in Windows 8, so we can safely backport.

@zooba
Copy link
MemberAuthor

The rough testing I did showed about 50% reduction in startup time (~450ms->250ms) in non-ideal circumstances, but the Windows devs I was working with said it seemed right. The numbers were pretty stable.

@zooba
Copy link
MemberAuthor

Okay, had to retract one of the major optimisations because it can be incorrect. That brings the improvement down to around 50ms, which is still worthwhile, but not as impressive.

However, users can at least override this perf impact by setting their ownPYTHONUSERBASE env variable before launching.

@zooba
Copy link
MemberAuthor

It's possible we might be able to bring that optimisation back, looks like Windows covers the concerning edge cases for us. Still checking

@zoobazooba added DO-NOT-MERGE performancePerformance or resource usage labelsNov 10, 2022
@zoobazooba merged commit71a4a2d intopython:mainNov 23, 2022
@miss-islington
Copy link
Contributor

Thanks@zooba for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-99733 is a backport of this pull request to the3.11 branch.

@bedevere-botbedevere-bot removed the needs backport to 3.11only security fixes labelNov 23, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestNov 23, 2022
…on on Windows (pythonGH-99345)(cherry picked from commit71a4a2d)Co-authored-by: Steve Dower <steve.dower@python.org>
@bedevere-bot
Copy link

GH-99734 is a backport of this pull request to the3.10 branch.

@bedevere-botbedevere-bot removed the needs backport to 3.10only security fixes labelNov 23, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestNov 23, 2022
…on on Windows (pythonGH-99345)(cherry picked from commit71a4a2d)Co-authored-by: Steve Dower <steve.dower@python.org>
miss-islington added a commit that referenced this pull requestNov 23, 2022
…on on Windows (GH-99345)(cherry picked from commit71a4a2d)Co-authored-by: Steve Dower <steve.dower@python.org>
miss-islington added a commit that referenced this pull requestNov 23, 2022
…on on Windows (GH-99345)(cherry picked from commit71a4a2d)Co-authored-by: Steve Dower <steve.dower@python.org>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
performancePerformance or resource usageskip issue
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@zooba@miss-islington@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp