~/talk

Node.js Performance Optimizations

Talkat SquiggleConf 2024 · 2024-10-03..10-04· [nodejs]
slides:none on file

Shows concrete wins: adds a fast UTF-8 TextDecoder path that avoids initializing ICU (ICU adds ~80 MB to Node binaries), introduces lazy string-decoder loading and UTF‑8-only code paths, special-cases Buffer.byteLength for common encodings, and uses a 128-byte branch with SIMD vs JS loop for Buffer.swap16. Delivers new utilities (node --run, node --env-file) and a rewritten URL parser used per-fetch (~8 calls) with measurable throughput improvements; 250+ Node contributions back these changes.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:27Optimizing marriage and life
  3. 3:32Node.js kitchen analogy
  4. 5:19Text decoder optimizations
  5. 7:54Buffer and C++ optimizations
  6. 8:37Wrap-up and Q&A
~/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.