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

Optimize joining of pathlib.PurePath() arguments. #104996

Closed
Labels
3.13bugs and security fixesperformancePerformance or resource usagetopic-pathlibtype-featureA feature request or enhancement
@barneygale

Description

@barneygale

In Python 3.12, when multiple arguments are given toPurePath(), the initialiser callsos.path.join() to join them. This is reasonably slow. For Python 3.13 we can make it faster by:

  1. Deferring joining of arguments until strictly needed
  2. (Maybe) re-implementingos.path.join(), as pathlib did beforegh-94909: fix joining of absolute and relative Windows paths in pathlib #95450.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixesperformancePerformance or resource usagetopic-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