-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix: Performance issue with player logs #17948
Conversation
frontend/src/scenes/session-recordings/player/sessionRecordingPlayerLogic.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
additional files but 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git checkout origin/master -- frontend/src/scenes/notebooks/NotebookSelectButton/NotebookSelectButton.tsx
is what I use to remove files from PRs when they sneak in
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git checkout origin/master -- frontend/src/scenes/notebooks/Notebook/SlashCommands.tsx
is what I use to remove files from PRs when they sneak in
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh sweet. I will endeavour to do that next time 🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will never forgive you (it's sad, but we have to maintain standards)
Problem
Long bit of debugging led me to find out something frustrating - the logging from the replayer is the source of a huge number of lock ups. Essentially the logged object can be so massive and full of getter proxies that simply serializing it takes such a long time that the browser locks up.
Any recording with a lot of warnings suffered from this which is largely why some people had such bad experiences.
Changes
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
How did you test this code?