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

perf: dont double serialize IPC messages #232

Merged
merged 1 commit into from
Jul 3, 2020

Conversation

MarshallOfSound
Copy link
Contributor

IPC uses the V8 serializer so I understand why we send it through JSON.parse(JSON.stringify( to ensure that no stray functions could break it, it's needless to do that in the renderer and then send it through the serializer as well. This PR is a small perf tweak to stringify in the renderer and parse in the main process which means the V8 serializer isn't also serializing the object, rather just a string

@timfish timfish requested a review from HazAT June 23, 2020 10:22
Copy link
Member

@HazAT HazAT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx

@HazAT HazAT merged commit b486c25 into getsentry:master Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants