-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make PCT scheduling not linear in max number of tasks (release v0.4.1) (
#84) * Make PCT scheduling not linear in max number of tasks Currently our PCT implementation does a linear search through the list of priorities. This list's length is determined by the maximum number of tasks a test has ever created. For tests that create many short-lived tasks (like many async tests), this means we'll be doing a very expensive linear scan just to choose from a small set of runnable tasks. Instead, maintain priorities as a map, and look up the runnable tasks in the map. This does a little bit more work in the case where |priorities| ~= |runnable|, because there's no early exit any more, but we expect the runnable set to generally be fairly small and often significantly smaller than the total set. * Fix new Clippy lints * Release v0.4.1
- Loading branch information
1 parent
1c87c0e
commit 5e0034f
Showing
5 changed files
with
57 additions
and
28 deletions.
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
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
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