Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: