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
Boot snapshot byte-copies the 180 MB store on every launch — use an APFS clone (COPYFILE_FICLONE) #637
With the store at 180 MB (growing ~18 MB/day, see #225) that is 180 MB read + 180 MB written to disk on every launch, on top of the synchronous 180 MB readFileSync + JSON.parse that precedes it. It directly stretches time-to-first-paint and adds a boot-time SSD write that scales with store size.
COPYFILE_FICLONE makes an instant APFS clone (zero bytes of data copied) and silently falls back to a normal copy on filesystems without reflink support, so no platform branching is needed (do NOT use FICLONE_FORCE, which errors instead of falling back). The existing try/catch already tolerates failure.
Sharding the store (#225) shrinks the payload too, but this is independent and free today. The same flag is worth auditing at other big-file copy sites (e.g. worktree scaffolding).
Landed on main as 755f0a2 (local, not yet pushed): Store._load() now snapshots with fs.constants.COPYFILE_FICLONE — instant CoW clone on APFS, silent fallback to a real copy elsewhere. The 180 MB byte-copy is gone from the boot chain.
Activity
currentbits commentedon Aug 21, 2026
Landed on main as 755f0a2 (local, not yet pushed): Store._load() now snapshots with fs.constants.COPYFILE_FICLONE — instant CoW clone on APFS, silent fallback to a real copy elsewhere. The 180 MB byte-copy is gone from the boot chain.
perf: cheaper store boot and flush cadence (#637, #225 interim)
perf: stop rewriting the whole store on click and boot (#636, #637, #225