You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf(internal): optimize Subscription#add() for the common case (#4489)
This removes unnecessary checks on the `teardown` parameter upfront, and
instead moves these checks into the appropriate branches guarded by the
type check. This way we get the same behavior, but with fewer checks and
smaller code size.
Also optimize adding the child `subscription` to `this._subscriptions`
for the common case that there were no previous subscriptions.
0 commit comments