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 pathlib path construction #101362

Closed
Labels
@barneygale

Description

@barneygale

Pathlib is slow. One of the most obvious symptoms is thatpathlib.PurePath objects are slow to construct. We should be able to speed construction up without making other parts of pathlib slower.

Two possible approaches:

  1. Optimize the existing machinary of path construction:__new__(),_from_parts(),_parse_parts(),_parse_args().
  2. Perform less work in the constructor: defer parsing, joining and normalization until needed.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp