This repository has been archived by the owner on May 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major performance improvment by bypassing the sequence of ports when …
…sending tree data (#592) * Relatively minor performance fixes: * Revert the recursion change I made to the serializer as it performs way worse than the old implementation * Do not expand large arrays by default in the State view because it takes a long time to render them (Note: There is a big performance fix coming around message transmission but this is not it) * Major performance improvement by sending component data through an alternate channel instead of the sequence of ports that require 4 serializations and deserializations for each message * Up the delta threshold * Remove debug statements * Remove fallthrough switch statement (Igor's comment)
- Loading branch information
Showing
27 changed files
with
447 additions
and
227 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import { | ||
Message, | ||
MessageFactory, | ||
browserDispatch, | ||
messageJumpContext, | ||
browserSubscribeResponse, | ||
} from '../communication'; | ||
|
||
export const send = <Response, T>(message: Message<T>): Promise<Response> => { | ||
return new Promise((resolve, reject) => { | ||
browserSubscribeResponse(message.messageId, response => resolve(response)); | ||
browserDispatch(MessageFactory.dispatchWrapper(message)); | ||
messageJumpContext(MessageFactory.dispatchWrapper(message)); | ||
}); | ||
}; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
export * from './description'; | ||
export * from './highlighter'; | ||
export * from './lookup'; | ||
export * from './parse-router'; |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.