Firefox 135.0 发布
When.js 3.6.0 发布,该版本改进内容包括:
- 显著的性能提升:
- when.map 性能提升 10x 或更多,特别是针对大数组
- ~2x for
when.reduce
andpromise.fold
- ~1.5-2x for generators using
when/generator
lift
,call
, and/orapply
.
- when.reduce 和 promise.fold 降低了内存的占用
When.js 是 cujojs 的轻量级的 Promises/A 和 when() 实现,从 wirejs” target=”_blank”>wire.js 的异步核心和 cujojs 的 IOC 容器派生而来。包含很多其他有用的 Promiss 相关概念,例如联合多个 promiss、mapping 和减少 promises 集合以及 timed promises 等。