GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Make `os.DirEntry.is_symlink` ~twice as fast · Issue #108985 · python/cpython

Make os.DirEntry.is_symlink ~twice as fast #108985

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Make os.DirEntry.is_symlink ~twice as fast#108985
Copy link
Assignees
sobolevn
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirperformancePerformance or resource usagePerformance or resource usage

Description

@sobolevn
sobolevn
opened on Sep 6, 2023
Issue body actions

While fixing a merge conflict in #108718 I've noticed that I've missed the same problem in os.DirEntry.is_symlink.

I will send a new PR since the original one was already merged

Refs #108717

Linked PRs

  • gh-108985: Make os.DirEntry.is_symlink ~twice as fast #108986

Activity

  1. sobolevn
    added
    performancePerformance or resource usagePerformance or resource usage
    extension-modulesC modules in the Modules dirC modules in the Modules dir
    on Sep 6, 2023
  2. sobolevn
    self-assigned this
    on Sep 6, 2023
  3. sobolevn
    added a commit that references this issue on Sep 6, 2023

    pythongh-108985: Make `os.DirEntry.is_symlink` ~twice as fast

    ab407e1
  4. sobolevn commented on Sep 6, 2023

    @sobolevn
    sobolevn
    on Sep 6, 2023
    MemberAuthor
    More actions

    False alarm:

    #elif defined(HAVE_DIRENT_D_TYPE)
        /* POSIX */
        if (self->d_type != DT_UNKNOWN)
            return self->d_type == DT_LNK;
        else
            return DirEntry_test_mode(defining_class, self, 0, S_IFLNK);
    #else
        /* POSIX without d_type */
        return DirEntry_test_mode(defining_class, self, 0, S_IFLNK);
    #endif
    Reacted by Erlend E. Aasland
  5. sobolevn
    closed this as not plannedon Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @sobolevn
    sobolevn

Labels

extension-modulesC modules in the Modules dirC modules in the Modules dirperformancePerformance or resource usagePerformance or resource usage

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.