~/talk

The memory footprint of node modules

Talkat NodeConf EU 2017 · 2017-11-05..11-08· [nodejs, web-performance]
slides:none on file

Scripts that require heavy modules load tens of megabytes each so measuring initial process RSS matters: use the uploader description methods and tools like npm ls, dependency-check, npm dedupe and size analyzers (analyze-module-size, cost-of-module) or the module-footprints CLI that compares memory before/after require. Replace bulky libraries with submodule requires (lodash/chunk) or native APIs (Array.find, core http/https) or rewrite small helpers. Result is concrete: per-script memory drops from ~25–26MB to under 10MB, allowing ~6,400 concurrent scripts in the author’s test.

AI-written summary · about

  1. 0:00Start
  2. 2:07Load Testing
  3. 3:38Goals
  4. 4:42Scale Horizontally
  5. 7:33Dependency Check Cli
  6. 9:06Duplicate Baggage
  7. 11:31Baggage Size
  8. 13:19Module Footprints
  9. 16:34Baseline Memory Footprint of Express
  10. 18:44Recap
~/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.