-
Notifications
You must be signed in to change notification settings - Fork 46.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use queueMicrotask to batch bridge messages
This timeout is too long. It makes the UI feels sluggish. Chrome also throttles looping timers aggressively which makes it worse. We also shouldn't rely on the throttling at this level. It doesn't help when you spam the receiving side with thousands of messages to process anyway. Instead we need to implement a form of backpressure to avoid sending so much in the first place.
- Loading branch information
1 parent
8ee7311
commit c55b626
Showing
2 changed files
with
29 additions
and
26 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