mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-13 19:47:48 -04:00
readStoreIntegrities was O(n²) — Array.includes() for dedup on every entry. It also used entries() which msgpack-decodes every value even though only keys are needed. Fix: add StoreIndex.keys() that runs SELECT key (no data decode), and use a Set for O(1) dedup. A 22MB store index now reads in milliseconds instead of hanging indefinitely.