Skip to content

Speed up glob.glob() by reducing number of system calls made #116380

Activity

  1. added 2 commits that reference this issue on Mar 5, 2024
  2. changed the title [-]Speed up `glob.glob()`[/-] [+]Speed up `glob.glob()` by reducing number of system calls made[/+] on Mar 22, 2024
  3. added 2 commits that reference this issue on Mar 27, 2024
  4. added 5 commits that reference this issue on Apr 5, 2024
  5. 37 remaining items

  6. cmaloney commented on Feb 28, 2025

    @cmaloney
    Contributor

    Given #116392 reduced system calls by changing design, would it be possible to add a test so that it doesn't accidentally revert? Tests are editable if a better / faster set of system calls is found, helps ensure changes are intentional. I improved the infrastructure to make this sort of testing possible a bit ago, happy to help implement:

    system call checking infrastructure: https://github.com/python/cpython/blob/main/Lib/test/support/strace_helper.py
    sample test: https://github.com/python/cpython/blob/main/Lib/test/test_fileio.py#L365-L498

  7. added a commit that references this issue on Feb 28, 2025
  8. added
    stdlibStandard Library Python modules in the Lib/ directory
    on Mar 1, 2025
  9. added 2 commits that reference this issue on Mar 1, 2025
  10. added a commit that references this issue on Aug 6, 2025
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/ directory

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions