Skip to content

Speedup os.path #117609

Closed as not planned
Closed as not planned

Description

@nineteendo

Feature or enhancement

Proposal:

There are (still) some minor optimisations possible in os.path, including some fast returns.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Activity

  1. added
    performancePerformance or resource usage
    stdlibStandard Library Python modules in the Lib/ directory
    on Apr 7, 2024
  2. barneygale commented on Apr 8, 2024

    @barneygale
    Contributor

    Duplicate of #117349, please don't do this. The bug tracker is not your personal to-do list.

  3. nineteendo commented on Apr 8, 2024

    @nineteendo
    ContributorAuthor

    Most PRs will require an issue number. Trivial changes, like fixing a typo, do not need an issue.

    Must I link to the closed issue then? This PR is about further changes.

  4. barneygale commented on Apr 8, 2024

    @barneygale
    Contributor

    If you think the previous issue was closed prematurely then you can leave a comment there asking for it to be re-opened.

    Please take a look at other issues on the bug tracker to get an idea of what's in and out of scope. We don't generally allow issues like "micro-optimise this entire module" - they're too broad and not useful enough to other developers.

  5. nineteendo commented on Apr 8, 2024

    @nineteendo
    ContributorAuthor

    If you think the previous issue was closed prematurely then you can leave a comment there asking for it to be re-opened.

    Not prematurely, I just found new optimisations.

    We don't generally allow issues like "micro-optimise this entire module"

    There is a particularly inefficient loop in ntpath: #117610 (comment)
    Can I add some other optimisations alongside it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions