TLDR Dev · ARTICLES & TUTORIALS

WE RALPH WIGGUMED WEBSTREAMS TO MAKE THEM 10X FASTER

vercel.com9 min read

Summary from the TLDR Dev newsletter

Vercel found that WebStreams were a huge bottleneck in Next.js server rendering. The streams were burning CPU on Promise allocations for every chunk. Vercel built fast-webstreams, a drop-in replacement that collapses piping chains into a single Node.js pipeline() call with zero Promises per chunk, with the end goal of merging this package into Node.js itself soon.