Files
Zoltan Kochan 57814c7e02 perf: sqlite-backed metadata cache for server resolution
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)
2026-04-10 01:35:12 +02:00
..