FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-119169: Speed up `os.fwalk(topdown=False)` by barneygale · Pull Request #121433 · python/cpython · GitHub

/ cpython Public

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 commented Jul 6, 2024
edited by bedevere-app Bot
Loading

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.
barneygale added the performance Performance or resource usage label Jul 6, 2024

Copy link
Copy Markdown
Contributor Author

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

barneygale closed this Jul 8, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Performance or resource usage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL