-
Notifications
You must be signed in to change notification settings - Fork 829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load DirectoryTree
contents in a worker
#2545
Merged
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
30a20ac
Break iterdir out into a method of its own for easy testing
davep d673175
Experimenting with placing _load_directory in a worker
davep 8b9a8e4
Simplify _load_directory
davep cd05d6c
Merge branch 'main' into directory-tree-work-in-worker
davep 3997187
WiP: Throttle back the number of concurrent loads of a DirectoryTree
davep 05dc877
Check for the worker being cancelled
davep df0f73b
Remove debug logging
davep 4ead43c
Set up the job tracking before setting the path
davep ce7a78d
Have the reset method take part in background loading
davep 791f2ea
Ensure we don't create a job for a node that's already being loaded
davep 08246d8
Don't post the finished message if we've been cancelled
davep 9ae8e47
Add a method for cancelling all of the load jobs
davep 82a0817
Cancel any loads when resetting the tree
davep 05eeaa7
Tidy up _load_directory
davep 9b41b74
Remove the artificial slowdown
davep c45126b
Update the ChangeLog
davep 4d225b8
Correct a comment typo
davep 5f839da
Merge branch 'main' into directory-tree-work-in-worker
davep 804d85a
Merge branch 'main' into directory-tree-work-in-worker
davep 926c0a2
Reset all DirectoryTree worker changes
davep 58f0d11
Change to a single loader thread with a queue
davep e69e57d
Remove unused import
davep 80d00ce
Logging and experimenting for Windows
davep 6876a04
More Windows thread oddness experimenting
davep 64d9c60
Revert experimental code
davep 82924c2
Make the main load worker into a asyncio task
davep a42250d
async Queue get blocks when empty, so don't handle empty exception
davep ecde90b
Remove unused import
davep 26e6dbb
Swap to a dual-working approach
davep c04bbd1
Ensure the loader kicks off when starting up with . as the directory
davep dadd7c0
Guard against PermissionError
davep 3f64728
Merge branch 'main' into directory-tree-work-in-worker
davep 2a91e13
Mark each load task as done when it's done
davep 86bee6c
Rename _to_load to _load_queue
davep 522d56c
Be more optimistic about when the node content is loaded
davep e381c26
Create a single method for adding a node to the load queue
davep abbffbf
Code tidy
davep File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.