-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize data passing from backend to frontend
Summary: The devtools does a `JSON.parse(JSON.stringify(data))` on all Relay events to get around the limitation that all data passed through postMessages need to be serializable. But this is getting expensive as we add more information in Relay loggers. This diff gets rid of the JSON calls, and instead preprocess data and filter out unused expensive information. Reviewed By: andreqi Differential Revision: D60936078 fbshipit-source-id: ba64679ee0df8db729dd2ec1d50e3c2a37c999be
- Loading branch information
1 parent
a19aabc
commit fe1ec33
Showing
4 changed files
with
77 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters