The semver library used by npm, yarn, and pnpm can be optimized by 33x through eliminating duplicate validation steps and implementing more efficient parsing. During package installation, these tools make over 21,000 semver function calls, with most being redundant validation before parsing. By following the 'parse, don't

7m read timeFrom marvinh.dev
Post cover image
Table of contents
Parse, don't validateDoes slapping a cache in front of things help?How fast can we make it?Conclusion
1 Comment

Sort: