Please sign in to comment.
* Reduce emit overhead to ~50% of prior, by caching class-name of jav…
…a-script module/interface. Summary: Made modification to react-native code that reduces the communication channel overhead to ~50% of prior, in some cases, by caching the class-name of the java-script module/interface. For me it reduced the run-time of the RCTDeviceEventEmitter.emit function from 1438ms to 715ms, over a period of 8 seconds in my Android app. My project requires many emit calls, as I'm transferring real-time EEG data from a Muse headband to my react-native UI to be graphed, so this optimization was very helpful in my case. Closes #11118 Reviewed By: astreet Differential Revision: D4232794 Pulled By: javache fbshipit-source-id: 25ca1cfc170a343e71ff8915c3fa7e38884a402b
- Loading branch information...
Showing with 16 additions and 9 deletions.