top | item 45217896

(no title)

Jarred | 5 months ago

Streaming prevents many optimizations because the code can’t assume it’s done when run once, so it has to suspend / resume, clone extra data for longer, and handle boundary cases more carefully.

It’s usually only worth it after ~tens of megabytes, but vast majority of npm packages are much smaller than that. So if you can skip it, it’s better.

discuss

order

yencabulator|5 months ago

Streaming compression with a large buffer size handles everything in a single batch for small files.