Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make ThreadPoolScheduler.cue a multi
The "cue" method takes *many* named parameters, which causes a lot of overhead. Whereas the most common use, namely in from "start { ... }" only uses *one* named parameter. Making it a multi with one required named parameter in each candidate, makes the most common call to .cue about 5x as fast with 25% fewer allocations. This makes something like await do for ^100000 { start { } } go from 2.6 seconds wallclock to 2.1 seconds wallclock.
- Loading branch information
Showing
1 changed file
with
142 additions
and
77 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