rspace-online/modules/rfunds
Jeff Emmett 63ac2a268e perf: parallelize local-first init — batch IDB loads, cache crypto keys, preload sync states
Sequential document loading during init() was the main bottleneck: each cached
doc required a serial IDB read + key derivation + decryption + Automerge.load.
With N documents this meant N× single-doc latency instead of 1×.

Changes:
- Add loadMany() to EncryptedDocStore for parallel Promise.all() batch loading
- Cache derived space/doc CryptoKeys in DocCrypto (one derivation per session)
- Add preloadSyncStates() to DocSyncManager for parallel sync state loading
- Update all 11 module local-first-client init() methods to use batch APIs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 14:18:55 -08:00
..
components feat: Sankey-proportional edges + node satisfaction bars in rFunds diagram 2026-03-02 21:30:12 -08:00
db feat: Phase 4 — remove PostgreSQL from 11 modules, switch to Automerge 2026-03-02 15:48:01 -08:00
lib feat: Transak credit card → USDC fiat on-ramp for rFunds TBFF 2026-03-02 18:04:53 -08:00
landing.ts Merge branch 'dev' 2026-02-28 19:51:51 -08:00
local-first-client.ts perf: parallelize local-first init — batch IDB loads, cache crypto keys, preload sync states 2026-03-03 14:18:55 -08:00
mod.ts feat: workflow template, choice components, space settings, EncryptID vault, UI polish 2026-03-03 13:15:13 -08:00
schemas.ts feat: batch local-first migration for 10 modules (Phase 3) 2026-03-02 14:01:58 -08:00