▲ | Jarred 4 days 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. | ||
▲ | yencabulator 3 days ago | parent [-] | |
Streaming compression with a large buffer size handles everything in a single batch for small files. |