~/talk

Practical Performance for React Native

Talkat React Finland 2019 · 2019-04-24..04-26· [react-native, web-performance]

Measurements show the slowdown lives on the JavaScript thread (target 60fps, observed 30 and even 15 or negative), diagnosed with React Native Debugger / Chrome performance flame charts and Android systrace. Remedies that actually move the needle: removed shouldComponentUpdate, replace 16–20 dispatched actions with single dispatched action (empty action once costs ~3s on a huge store), memoize with reselect selectors, avoid anonymous inline functions, use inline requires and switch navigation away from state-driven remounting.

AI-written summary · about

  1. 0:00Start
  2. 2:29The weak link?
  3. 3:24Looking for the culprit
  4. 5:31Measuring JS performance
  5. 9:06Reconciler
  6. 10:35Node type change
  7. 10:59Prop change
  8. 11:09Recursive updates
  9. 11:32Examples - anonymous functions
  10. 12:18Examples - react-redux
  11. 13:27Examples - selectors
  12. 14:22Local state - setting state based on props
  13. 15:20Local state - necessary?
  14. 17:34Connecting state
  15. 19:30Native only - animations
  16. 19:49Native only - inline requires
  17. 20:58Native only - low-level measuring
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.