-
-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Smaller private methods allow common-case paths to be inlined. This code structure also needs less closure clones, by moving the dynamic var declarations into the signature of a private. As a further bonus, factoring out a little repetition makes the code slightly shorter. Shaves 4 GC runs off `my $s = supply emit 42; for ^10_000 { react whenever $s { } }` due to the reduced allocations, and gives a speedup.
- Loading branch information
Showing
1 changed file
with
28 additions
and
29 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