Commit Graph

5 Commits

Author SHA1 Message Date
Julien Calixte
b003a3e008 perf: move PouchDB/IndexedDB operations to a Web Worker
All database reads and writes now run off the main thread via a
dedicated worker, eliminating IndexedDB overhead from the frame budget.

- Create data.worker.ts exposing the Data class via Comlink
- Refactor data.ts to export a Comlink-wrapped proxy and a standalone
  generateId() pure function (workers can't expose sync methods cleanly)
- Update all 10 call sites to import generateId directly instead of
  calling data.generateId()

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-04 11:27:45 +02:00
Julien Calixte
5f48aa5690 chore: lint and fmt 2026-03-28 09:38:55 +01:00
Julien Calixte
baf32ce8e5 perf: get notes only on demand 2025-01-12 13:06:40 +01:00
Julien Calixte
4512530250 retrieve all from indexed db in one call 2025-01-12 10:58:03 +01:00
Julien Calixte
786286391a style: rename hook for the global usage 2024-10-27 12:34:26 +01:00