rxjs icon indicating copy to clipboard operation
rxjs copied to clipboard

perf(animationFrames): uses fewer Subscription instances

Open benlesh opened this issue 3 years ago • 1 comments

Leverages a single id variable instead of creating a new child Subscription for each scheduled animation frame. This is important because animation frames are scheduled very rapidly and this helps prevent CPU and GC thrashing.

Related #7018

benlesh avatar Sep 09 '22 00:09 benlesh

NOTE: Will do a follow up to remove animationFrameProvider.schedule, since it's not public and we're not using it after this PR.

benlesh avatar Sep 09 '22 00:09 benlesh