Speed up zstash check multiprocessing scheduling and queue handling#447
Draft
Copilot wants to merge 1 commit into
Draft
Speed up zstash check multiprocessing scheduling and queue handling#447Copilot wants to merge 1 commit into
zstash check multiprocessing scheduling and queue handling#447Copilot wants to merge 1 commit into
Conversation
Copilot created this pull request from a session on behalf of
forsyth2
June 3, 2026 22:42
View session
Collaborator
Contributor
Author
They’re mostly independent and can be handled separately. This PR only optimizes scheduling/queue handling inside |
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
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.
Summary
zstash checkspent avoidable time in worker assignment and failure collection inthe multiprocessing path. This change keeps behavior intact while reducing
scheduler and polling overhead.
Objectives:
zstash checkbehavior and output semantics.Select one: This pull request is...
a bug fix: increment the patch version
a small improvement: increment the minor version
a new feature: increment the minor version
an incompatible (non-backwards compatible) API change: increment the major version
Key changes
tar -> worker_idxmap during greedy bin-packing.empty()spin loops with blockingfailure_queue.get(timeout=0.05).get_nowait().work_to_workers) directly.reverse=True) for better balancing.Small Change
Big Change
1. Does this do what we want it to do?
Required:
If applicable:
2. Are the implementation details accurate & efficient?
Required:
If applicable:
zstash/conda, not just animportstatement.3. Is this well documented?
Required:
4. Is this code clean?
Required:
If applicable: