Skip to content

Replay hinders performance on Angular apps #11661

Description

@billyvg

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:

Image

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions