Description
Related to #6946 (comment) - Replay can still cause performance regressions for Angular apps when calling the Angular-patched versions of certain native functions that results in trigger a massive amount of Angular's change detectors.
We only changed to use the non-patched version of requestAnimationFrame
, but it's possible this happens with other timer-related functions as well. From looking at [the minified] Angular source:
I don't know Angular at all, but we may want to try to use the unpatched versions of these functions:
-
setTimeout
-
clearTimeout
-
setInterval
-
clearInterval
-
setImmediate
-
clearImmediate
Ideally, this would happen only in the angular package as to not bloat the rest of the packages.
Closes https://github.com/getsentry/team-replay/issues/424 (Internal ticket)
Metadata
Metadata
Assignees
Type
Projects
Status
Waiting for: Community