Paul Krill
Editor at Large

Latest Node.js boosts stream performance

news
Oct 2, 20231 min

Node.js v20.8.0 release also brings memory management improvements that address longstanding memory leaks.

Shower with droplets of running water 134723415
Credit: Thinkstock

Node.js v20.8.0 has arrived, offering performance improvements for streams in the popular JavaScript runtime environment.

Published as the “current” version of Node.js on September 29 and offering the platform’s latest features, Version 20.8.0 can be downloaded from nodejs.org. Stream performance improvements were made to writeable and readable streams, improving creation and destruction by roughly 15% and reducing memory overhead of each stream. Other highlights include performance improvements for readable webstream, boosting readable stream async iterator consumption by about 140%, and improving readable stream pipeto consumption by approximately 60%.

A rework of memory management in vm APIs, meanwhile, has been done with the importModuleDynamically option. This rework addressed longstanding memory leaks and use-after-free issues in APIs supported by this option, such as vm.Script, vmCompileFunction, and vmSyntheticModule. This should enable affected users to upgrade from older Node.js versions.

Node.js 20.8.0 also features a series of changes impacting doc, stream, and module capabilities. Although Version 20.8.0 is the “current” release, giving library authors time to add support, Node.js 18.18.0 is cited as the long-term support (LTS) release of the asynchronous, event-driven JavaScript runtime at the moment, recommended for most users and published September 18. It, too, can be downloaded from nodejs.org.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author