Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-103548: Improve performance of pathlib.Path.[is_]absolute() #103549

Merged
merged 10 commits into from
May 6, 2023

Commits on Apr 14, 2023

  1. pythonGH-103548: Improve performance of pathlib.Path.[is_]absolute()

    Pass the *unnormalized* path to `os.path.isabs()`.
    
    When making an empty path absolute, avoid calling `os.path.join()`, and
    prevent pathlib from later re-normalizing the result of `os.getcwd()` by
    storing it as `path._str`.
    barneygale committed Apr 14, 2023
    Configuration menu
    Copy the full SHA
    871dbdb View commit details
    Browse the repository at this point in the history
  2. Fix absolute() on Windows.

    barneygale committed Apr 14, 2023
    Configuration menu
    Copy the full SHA
    72c6652 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2023

  1. Simplify code

    barneygale committed Apr 15, 2023
    Configuration menu
    Copy the full SHA
    37153c5 View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2023

  1. Configuration menu
    Copy the full SHA
    e2558bb View commit details
    Browse the repository at this point in the history

Commits on May 2, 2023

  1. Configuration menu
    Copy the full SHA
    6e984bc View commit details
    Browse the repository at this point in the history

Commits on May 6, 2023

  1. Configuration menu
    Copy the full SHA
    7d1ebe2 View commit details
    Browse the repository at this point in the history
  2. Improve news blurb

    barneygale committed May 6, 2023
    Configuration menu
    Copy the full SHA
    cfe99fd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    12957bf View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b476ce6 View commit details
    Browse the repository at this point in the history
  5. Clarify comment

    barneygale committed May 6, 2023
    Configuration menu
    Copy the full SHA
    b32b86c View commit details
    Browse the repository at this point in the history