GH-102613: Fast recursive globbing in `pathlib.Path.glob()` by barneygale · Pull Request #104512 · python/cpython · GitHub

github.com

Tin mới

barneygale:gh-102613-remove-selector-classes

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Path.rglob performance issues in deeply nested directories compared to glob.glob(recursive=True) #102613

: Simplify implementation of

awaiting core review

awaiting core review

Speed up matching *

Add comments, docstrings.

GH-77609: Add follow_symlinks argument to pathlib.Path.glob() #102616

Merge branch 'main' into

Merge branch 'main' into

Merge branch 'main' into

Add support for matching files recursively.

Implement walk-and-match algorithm.

Fix up docs, news blurb.

Fix handling of newlines in filenames.

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

Speed up recursive selection

Exclude self from walk-and-match matching.

Optimize walk-and-match logic.

Consume adjacent '**' segments before considering use of matching.

Add some more tests for complex patterns.

Drop test case that doesn't work on Windows.

View reviewed changes

Speed up pathlib.Path.glob() by removing redundant regex matching #115060