-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(combineLatest): avoid splice and indexOf
Speed up CombineLatestSubscriber notifyNext() by making toRespond be a number, not an array which is then spliced or searched with indexOf. We prefill values array with a so-called none object, which is useful for the calculation of the toRespond number.
- Loading branch information
Showing
1 changed file
with
9 additions
and
12 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