JavaScript installer pnpm recast in Rust because ECMAScript can't keep up
Fully backward-compatible upgrade promises zero-friction speedup for monorepo wranglers.
The popular JavaScript package manager pnpm, already known for its speedy downloads, has further cut installation times by up to 90 percent thanks to a complete rewrite in Rust.
Yet the freshly released version 12 of pnpm should not cause consternation while upgrading, its maintainer says.
“Upgrading should not feel like a migration. The commands, flags, settings, and lockfile format of pnpm 11 all carry over, and the documentation covers both versions,” wroteZoltan Kochan, the current lead maintainer of pnpm.
In the project’s own benchmarks, pnpm 12 installed a sample uncached package in 5.19 seconds, compared to the 8.22 seconds pnpm 11 required and the 47.7 seconds npm itself required.
The project team also built a registry server in Rust, called pnpr, which improves performance even further. In the above test, the installation took only 3.37...
Copyright of this story solely belongs to www.theregister.com. To see the full text click HERE