This page contains a table that provides an overview of common performance issues encountered in the development process and suggests optimization techniques to address them
It also includes detailed performance reports for each optimization problem discussed in the table.
Lastly, the page includes activity diagrams for each of the performance optimization techniques. These diagrams visually depict the flow of activities involved in testing and applying the optimization techniques.
Performance Issue | Optimization Technique |
---|---|
Unnecessary Re-renders/Inefficient Rendering | Memoization |
Using useReducer() instead of
useState()
|
|
Fragments | |
Using useEffect() dependencies
efficiently
|
|
Slow App Startup Time | Code splitting |
Tree shaking | |
Lazy loading | |
Threads Bottleneck | Removing Logs |
RenderToHardwareTextureAndroid |
|
InteractionManager | |
useNativeDriver in Animated |
|
Slow Render of Lists | Selecting appropriate List type |
Parameters tuning |
This is short gif comparing the Time To Initial Render of two components. One using the interactionManager and one without it
The following are Activity Diagrams for Tests Sequence