Node.js v20.8.0 has arrived, providing efficiency enhancements for streams within the standard JavaScript runtime atmosphere.
Printed because the “present” model of Node.js on September 29 and providing the platform’s newest options, Model 20.8.0 will be downloaded from nodejs.org. Stream efficiency enhancements had been made to writeable and readable streams, enhancing creation and destruction by roughly 15% and lowering reminiscence overhead of every stream. Different highlights embrace efficiency enhancements for readable webstream, boosting readable stream async iterator consumption by about 140%, and enhancing readable stream pipeto
consumption by roughly 60%.
A rework of reminiscence administration in vm
APIs, in the meantime, has been performed with the importModuleDynamically
possibility. This rework addressed longstanding reminiscence leaks and use-after-free points in APIs supported by this selection, equivalent to vm.Script
, vmCompileFunction
, and vmSyntheticModule
. This could allow affected customers to improve from older Node.js variations.
Node.js 20.8.0 additionally includes a sequence of modifications impacting doc, stream, and module capabilities. Though Model 20.8.0 is the “present” launch, giving library authors time so as to add help, Node.js 18.18.0 is cited because the long-term help (LTS) launch of the asynchronous, event-driven JavaScript runtime in the intervening time, really helpful for many customers and printed September 18. It, too, will be downloaded from nodejs.org.
Copyright © 2023 IDG Communications, Inc.