Skip to content

GH-119169: Speed up os.fwalk(topdown=False) - #121433

Closed
barneygale wants to merge 2 commits into
python:mainfrom
barneygale:os-fwalk-speedup-2
Closed

GH-119169: Speed up os.fwalk(topdown=False)#121433
barneygale wants to merge 2 commits into
python:mainfrom
barneygale:os-fwalk-speedup-2

Conversation

@barneygale

@barneygalebarneygale commented Jul 6, 2024

Copy link
Copy Markdown
Contributor

Add entries to the stack while iterating over os.scandir() results, rather than afterwards. This removes the need for an entries list and some zipping.

Requires #119473.

Add entries to the stack while iterating over `os.scandir()` results,
rather than afterwards. This removes the need for an `entries` list and
some zipping.
@barneygalebarneygale added the performance Performance or resource usage label Jul 6, 2024
@barneygale

Copy link
Copy Markdown
ContributorAuthor

Closing because reversing sibling traversal order isn't kosher - see discussion on #119473.

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

Labels

performancePerformance or resource usage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@barneygale