Commit Graph

7 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
2cab8c8e3f autoimport with eslint now 2023-08-14 18:04:27 +02:00
Julien Calixte
fe32ebb99c refacto 2023-08-06 22:23:05 +02:00
Julien Calixte
c6dec8769f display links to the stacked note 2021-06-06 10:47:36 +02:00
Julien Calixte
4f13c18573 compute note backlinks 2021-06-06 09:57:17 +02:00
Julien Calixte
203db4c00a (backlinks) init backlinks 2021-06-05 16:39:26 +02:00