Skip to content

gh-137855: Improve import time of pathlib - #146327

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

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

Conversation

@hugovk

@hugovkhugovk commented Mar 23, 2026

Copy link
Copy Markdown
Member
Before: 7ms After: 2ms
imageimage

@hugovkhugovk 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 ownerMarch 23, 2026 12:14
@hugovk

Copy link
Copy Markdown
MemberAuthor

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

@encukouencukou left a comment

Copy link
Copy Markdown
Member

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:mainMay 5, 2026
53 checks passed
@hugovk
hugovk deleted the 3.15-lazy-pathlib branch May 5, 2026 12:48
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performancePerformance or resource usageskip newsstdlibStandard Library Python modules in the Lib/ directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@hugovk@encukou