if (chunks === null) {
Последние новости
。关于这个话题,heLLoword翻译官方下载提供了深入分析
As part of their research, they have put together a set of proposed improvements for Node.js' Web streams implementation that will eliminate promises in certain code paths which can yield a significant performance boost up to 10x faster, which only goes to prove the point: promises, while useful, add significant overhead. As one of the core maintainers of Node.js, I am looking forward to helping Malte and the folks at Vercel get their proposed improvements landed!,推荐阅读爱思助手下载最新版本获取更多信息
This is the intuition the new API tries to preserve: streams should feel like iteration, because that's what they are. The complexity of Web streams — readers, writers, controllers, locks, queuing strategies — obscures this fundamental simplicity. A better API should make the simple case simple and only add complexity where it's genuinely needed.