Include info about console.log

Summary:
I spent so much time trying to optimize my JS without noticing this.
Closes https://github.com/facebook/react-native/pull/8285

Differential Revision: D3468707

fbshipit-source-id: bd5ff38ca2501891318b4be3c75bdaa10a4c64da
This commit is contained in:
Emilio Srougo 2016-06-21 23:09:39 -07:00 committed by Facebook Github Bot 4
parent 254404b98c
commit d9adeb9299

View File

@ -81,6 +81,10 @@ but their receipt is not necessary for the scroll to occur).
### Common sources of performance problems
#### Console.log statements
When running a bundled app, these statements can cause a big bottleneck in the JavaScript thread. This includes calls from debugging libraries such as [redux-logger](https://github.com/evgenyrodionov/redux-logger), so make sure to remove them before bundling.
#### Development mode (dev=true)
JavaScript thread performance suffers greatly when running in dev mode.