Continue reading...
Donna Lu is an assistant editor, climate, environment and science at Guardian Australia
,推荐阅读搜狗输入法下载获取更多信息
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!
res[i] = stack[stack.length - 1]; // 易错点5:用at(-1)兼容性差,优先用stack.length-1