~/talk

You Did What? Understanding Node.js Optimizations

Talkat NodeConf.eu 2013 · 2013-09-08..09-13· [nodejs, web-performance]
slides:none on file

Shows concrete optimizations: hoisting callbacks cuts a prime-generator run from 19.5 seconds to 4.6 seconds, switching encodings and using externalized strings avoids huge UTF‑8 decode overhead and GC spikes, and moving bookkeeping out of V8 reduces process.nextTick crossings from ~100,000 to ~14,000 callbacks per second. Benchmarks run on master, C++ helpers and native modules are used, patches are committed and measured, and the hacks demonstrably improve throughput and latency.

AI-written summary · about

  1. 0:00Start
  2. 3:15why is core code so confusing
  3. 13:33strange side effects Mutable Strings!!!
  4. 14:19best practice tip DON'T MUTATE YOUR STRINGS!!!
  5. 15:54write object properties in js
~/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.