Matteo Collina @nodeland.dev · Feb 17

We cut @nodejs memory in half with a one-line Docker image swap. No code changes. No new APIs. Just smaller heaps. Here's what happened when we tested pointer compression on real workloads 🧵

47 likes 3 replies

?

Replies

Whitney McGruder: Author Coach | Publisher · Feb 18

That’s an impressive win, simple changes with real impact are always the best kind 🚀✨

Alusus Programming Language · Feb 27

Nice, but can it reach the memory use of a low-level language? In the graph is NodeJS 20.12.2. More details: coderlegion.com/11988/benchm...

Matteo Collina · Feb 17

V8 has had pointer compression since 2020 (Chrome uses it!), but Node.js couldn't enable it — because all worker threads shared a single 4GB memory cage. @Cloudflare sponsored @Igalia to fix it in V8 with a new feature called IsolateGroups.