-
Notifications
You must be signed in to change notification settings - Fork 752
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Perf optimize interleaved weighted round robin scheduler (#3034)
* Perf optimize interleaved weighted round robin scheduler * Bypass scheduler if there is no other task * Remove unnecessary shutdown check ```bash before BenchmarkInterleavedWeightedRoundRobinScheduler_Sequential-16 6610477 176.0 ns/op 8 B/op 1 allocs/op BenchmarkInterleavedWeightedRoundRobinScheduler_Parallel-16 3230086 346.7 ns/op 8 B/op 1 allocs/op after BenchmarkInterleavedWeightedRoundRobinScheduler_Sequential-16 26722878 46.48 ns/op 8 B/op 1 allocs/op BenchmarkInterleavedWeightedRoundRobinScheduler_Parallel-16 4259040 267.4 ns/op 8 B/op 1 allocs/op ```
- Loading branch information
Showing
3 changed files
with
100 additions
and
33 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