These optimizations are difficult to implement, frequently error-prone, and lead to inconsistent behavior across runtimes. Bun's "Direct Streams" optimization takes a deliberately and observably non-standard approach, bypassing much of the spec's machinery entirely. Cloudflare Workers' IdentityTransformStream provides a fast-path for pass-through transforms but is Workers-specific and implements behaviors that are not standard for a TransformStream. Each runtime has its own set of tricks and the natural tendency is toward non-standard solutions, because that's often the only way to make things fast.
Фото: Пати Амирбекова / «Лента.ру»
。关于这个话题,服务器推荐提供了深入分析
Keep it clean and decent, especially at work
Copyright © 1997-2026 by www.people.com.cn all rights reserved