Skip to content

Faster ctor#86

Merged
DrChainsaw merged 2 commits intoshashi:masterfrom
DrChainsaw:faster-ctor
Mar 18, 2026
Merged

Faster ctor#86
DrChainsaw merged 2 commits intoshashi:masterfrom
DrChainsaw:faster-ctor

Conversation

@DrChainsaw
Copy link
Collaborator

Fixes #84

This uses walkdir which is much faster than readdir + isdir when it comes to separating files from directories. There were some attempts in the fixed issue to actually use the traversal of walkdir, but the current version has pretty much the same performance and does not rely on details about the iteration in the same way as the other options did.

@ghyatzo: Please verify if you can that this final version has acceptable performance for your usecase.

@DrChainsaw DrChainsaw merged commit 604a31d into shashi:master Mar 18, 2026
3 checks passed
@DrChainsaw DrChainsaw deleted the faster-ctor branch March 18, 2026 08:55
@ghyatzo
Copy link

ghyatzo commented Mar 18, 2026

Oh I was just about to try it. But if it's anything like the versions shared in the issue then this is already perfect.
Thanks a lot!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Speedup creation of FileTrees

2 participants