~/talk

Live Coding - Optimizing a React application

Talkat React Finland 2020 · 2020-05-28..12-02· [react, web-performance]
slides:none on file

A 100 by 100 grid shows a noticeable click delay and Chrome Performance plus React Profiler expose a 172 ms re-render for a single click and reconciliation blows to ~250 ms when CPU throttled. Iterative fixes use stable callbacks and memoization so useCallback and memo stop per-cell renders and extracting memoized rows reduces comparisons from ~10,000 to ~100 and yields a big speedup. For very large datasets the video recommends react-window virtualization as the next step.

AI-written summary · about

  1. 0:00Start
  2. 26:09Profiling
  3. 27:23Naive Grid
  4. 28:50Virtual Rendering
  5. 31:27Is Optimizing React Difficult
  6. 32:07Is Optimize and React Difficult
  7. 33:14Callback Pattern
~/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.