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

Improve Windows performance ofpathlib.Path.is_file and friends #101357

Closed
Assignees
barneygale
Labels
3.14bugs and security fixesOS-windowsperformancePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directorytopic-pathlibtype-featureA feature request or enhancement
@mdboom

Description

@mdboom

Feature or enhancement

We could implement / reuse the same fast paths that we did foros.path.* in#101324 forpathlib.Path.*. It will require a little more work, since thepathlib.Path API can returnOSError under certain circumstances, whereasos.path would returnFalse in those cases.

Pitch

We saw a 12-25% speedup doing this foros.path. It would be unfortunate if people chose the lower-level API for performance reasons becausepathlib.Path didn't match it in performance.

Linked PRs

Metadata

Metadata

Assignees

Labels

3.14bugs and security fixesOS-windowsperformancePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directorytopic-pathlibtype-featureA feature request or enhancement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp