mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 09:45:04 +00:00
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:
parent
254404b98c
commit
d9adeb9299
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user