mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
wh-repro.mjs uses a SEPARATE browser context per session (seed vs cold), so the persisted decrypt cache doesn't warm between runs, and captures the page-side stack of every window.nostr.nip44.decrypt call. It root-caused the watch-history cold-load cost: history is bucketed by month (one encrypted kind-30079 snapshot per month) and the load decrypts EVERY month via the extension — 600 items / 18 months => 18 serialized decrypt calls. So the cost is ~1 nip-07 decrypt per month of history; a multi-year history is the ~20s cold load. (The earlier "~180" figure was a shared-context harness artifact.) Co-Authored-By: Claude Opus 4.8 <[email protected]>