~/talk

How I Made Immer Twice As Fast Performance Optimization In Practice - Mark Erikson

Talkat React Paris 2026 · 2026-03-26..03-27· [react, web-performance]
slides:none on file

Walks through concrete changes that make Immer measurably faster: reproducible Mitata benchmarks across versions, Node CPU profiles captured with pprof flame charts, Rollup-built production artifacts, and line-by-line hotspots that reveal wasted work. Small fixes (caching constructor checks, skipping Object.isFrozen on primitives) yield ~20% gains; an architectural cleanup and an optional array override plugin add further speedups; overall scenarios improve 5–79% (roughly ~40% average) and fixes ship as Immer 10.2, 11.0 and 11.1.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:07What is performance optimization
  3. 3:12What is Immer and why optimize it
  4. 5:39Starting the Immer optimization project
  5. 6:02Principles of debugging and performance
  6. 10:12Tools for debugging and profiling
  7. 12:43Setting up benchmarks for Immer
  8. 14:07Capturing CPU profiling data
  9. 16:10Understanding flame charts and graphs
  10. 19:04Initial findings and benchmark fixes
  11. 20:28Root causes of Immer's slowness
  12. 22:12Architectural changes to Immer
  13. 22:54Optimizing array access performance
  14. 24:19Final performance improvements
  15. 25:25Advanced optimizations and V8 insights
  16. 27:32Lessons learned from the project
  17. 28:55Performance degrades over time
  18. 29:18Replay's time-traveling debugger demo
  19. 30:41New React performance tools in Replay
  20. 31:01Summary and further resources
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.