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-114847: Speed up posixpath.realpath() #114848

Merged
merged 23 commits into from
Apr 5, 2024
Merged

Commits on Feb 1, 2024

  1. pythonGH-114847: Speed up posixpath.realpath()

    Apply the following optimizations to `posixpath.realpath()`:
    
    - Remove use of recursion
    - Directly construct child paths rather than using `join()`
    - Use `os.getcwd[b]()` rather than `abspath()`
    - Use `startswith(sep)` rather than `isabs()`
    barneygale committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    0a4f60a View commit details
    Browse the repository at this point in the history
  2. Tiny tweak

    barneygale committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    5aa9c51 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b758710 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2024

  1. Configuration menu
    Copy the full SHA
    eb079b4 View commit details
    Browse the repository at this point in the history
  2. Simplify '..' handling.

    barneygale committed Mar 31, 2024
    Configuration menu
    Copy the full SHA
    60d3bcb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b849308 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    085e105 View commit details
    Browse the repository at this point in the history
  5. Tiny tweaks

    barneygale committed Mar 31, 2024
    Configuration menu
    Copy the full SHA
    69dabd2 View commit details
    Browse the repository at this point in the history
  6. Spacing

    barneygale committed Mar 31, 2024
    Configuration menu
    Copy the full SHA
    197c871 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2024

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

    barneygale committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    ecd1fe7 View commit details
    Browse the repository at this point in the history
  3. Final tweaks

    barneygale committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    4b83c97 View commit details
    Browse the repository at this point in the history
  4. Further explain 'rest'.

    barneygale committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    77712d2 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2024

  1. Update Lib/posixpath.py

    Co-authored-by: Petr Viktorin <encukou@gmail.com>
    barneygale and encukou committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    15199a8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8b3b808 View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2024

  1. Configuration menu
    Copy the full SHA
    01127e3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    31955ee View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    211167e View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2024

  1. Re-optimise link check

    barneygale committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    fe62fef View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ebccd2b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d2a0248 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ecbb27c View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2024

  1. Update Lib/posixpath.py

    Co-authored-by: Petr Viktorin <encukou@gmail.com>
    barneygale and encukou committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    eed739a View commit details
    Browse the repository at this point in the history