Skip to content

gh-137855: Improve import time of pathlib#146327

Merged
encukou merged 2 commits intopython:mainfrom
hugovk:3.15-lazy-pathlib
May 5, 2026
Merged

gh-137855: Improve import time of pathlib#146327
encukou merged 2 commits intopython:mainfrom
hugovk:3.15-lazy-pathlib

Conversation

@hugovk
Copy link
Copy Markdown
Member

@hugovk hugovk commented Mar 23, 2026

Before: 7ms After: 2ms
image image

@hugovk hugovk added performance Performance or resource usage stdlib Standard Library Python modules in the Lib/ directory labels Mar 23, 2026
@hugovk hugovk requested a review from barneygale as a code owner March 23, 2026 12:14
@hugovk
Copy link
Copy Markdown
Member Author

hugovk commented May 4, 2026

Confirmed after merge of #149338 that the -Xlazy_imports=none commands from #149321 work as expected.

Copy link
Copy Markdown
Member

@encukou encukou left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

@encukou encukou merged commit ffb543d into python:main May 5, 2026
53 checks passed
@hugovk hugovk deleted the 3.15-lazy-pathlib branch May 5, 2026 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Performance or resource usage skip news stdlib Standard Library Python modules in the Lib/ directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants