mirror of
https://github.com/pnpm/pnpm.git
synced 2026-07-23 14:13:09 -04:00
Add MetadataStore that stores npm registry metadata in SQLite instead of hundreds of .jsonl files. On server startup, imports existing cache files into SQLite. The resolver reads from SQLite (indexed lookup) instead of opening/parsing multi-MB JSON files from disk. Add metaCache option to ResolverFactoryOptions so the server can pass its SQLite-backed cache to the resolver. Plain pnpm CLI is unaffected — it continues using the default LRU + .jsonl files. Server resolution benchmark (1351 packages): - Before: 3,409ms (reading .jsonl files from disk) - After: 919ms (reading from SQLite) Total install time: 9.9s (vs 10.9-12.2s vanilla pnpm)