You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5a157c0
Browse filesBrowse the repository at this point in the historyBrowse files
Web: the zustand persist pipeline ran the full draft walk plus
JSON.stringify on every store write, so each keystroke serialized every
persisted draft, including base64 image attachments; only the final
localStorage write was debounced. partialize now captures the live state
cheaply and the walk + stringify run once per idle flush inside the
debounced storage. 200 keystrokes next to two 1 MB images: 200
serializations / 534.6 MB / 1693.5 ms of main-thread time down to
1 / 2.7 MB / 6.8 ms.
Mobile: picked and pasted images persisted full base64 data URLs into
drafts.json, thread-outbox/*.json, and incoming-shares/*.json (an 8 MB
image cost 21.3 MB of JSON per copy, rewritten on every 200 ms draft
debounce). Images are now file-backed like file attachments already
were: bytes are copied once into the app-owned attachment directory and
drafts persist metadata plus fileUri (322 bytes). Uploads stream from
the owned file; base64 is materialized lazily only for the old-server
inline fallback. Legacy dataUrl drafts still hydrate, preview, upload,
and send.
Co-Authored-By: Claude Fable 5 <[email protected]>
0 commit comments