Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [RUMF-1613] fix session replay performance regression #2313

Merged
merged 4 commits into from
Jun 30, 2023

Conversation

BenoitZugmeyer
Copy link
Member

Motivation

Following the release of Shadow DOM support for Session Replay (#1969), users started to notice important performance regression on applications using session replay.

The identified issue was that we instrumented input Node property setters like input.value or input.checked multiple times (once per Shadow Root). Those instrumentations are stacking up, making a significant overhead when the application set those properties.

Changes

Do not instrument setters when handling shadow roots.

Before:
Screenshot 2023-06-29 at 16 52 40

After:
Screenshot 2023-06-29 at 16 53 32

Testing

  • Local
  • Staging
  • Unit
  • End to end

I have gone over the contributing documentation.

@BenoitZugmeyer BenoitZugmeyer requested review from a team as code owners June 29, 2023 14:54
@BenoitZugmeyer BenoitZugmeyer force-pushed the benoit/fix-session-replay-performance-regression branch from afe06d1 to 4f57e1f Compare June 29, 2023 14:55
@BenoitZugmeyer
Copy link
Member Author

/to-staging

@dd-devflow
Copy link
Contributor

dd-devflow bot commented Jun 29, 2023

🚂 Branch Integration: starting soon, merge in < 0s

commit 4f57e1fef3 will soon be integrated into staging-26.

This build is going to start soon! (estimated merge in less than 0s)

you can cancel this operation by commenting your pull request with /to-staging -c!

@dd-devflow
Copy link
Contributor

dd-devflow bot commented Jun 29, 2023

🚂 Branch Integration: this commit was successfully integrated

commit 4f57e1fef3 has been merged into staging-26 in merge commit 83bb9ab641

@BenoitZugmeyer BenoitZugmeyer merged commit b2bf99b into main Jun 30, 2023
@BenoitZugmeyer BenoitZugmeyer deleted the benoit/fix-session-replay-performance-regression branch June 30, 2023 09:12
@bcaudan bcaudan mentioned this pull request Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants