From c27e04c88557716bbe8e42b9174ba9b07f90facf Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Thu, 8 Oct 2026 01:27:58 +0200 Subject: perf(node): sample 9 MB with the size above 9 MB, keep known ids hash_version 3: size + first 4 MB + last 4 MB + 1 MB at the middle, 5.5x faster cold on a USB disk than the 45 MB sample. The cache now serves a hit under whatever version it holds, so no existing id moves. Co-Authored-By: Claude Opus 5.5 --- docs/playlists.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/playlists.md') diff --git a/docs/playlists.md b/docs/playlists.md index f1f6b67..05e6776 100644 --- a/docs/playlists.md +++ b/docs/playlists.md @@ -447,7 +447,7 @@ Each field prevents a specific failure: playlist is a column of hex strings. A display problem, solved by copying four small strings. - **`hv`** — the index already has two hashing schemes (`protocol.py:297`: - 1 = whole file, 2 = 45 MB sample). A re-hash would orphan every entry in every + 1 = whole file, 2 = 45 MB sample, 3 = size + 9 MB sample). A re-hash would orphan every entry in every playlist, silently and all at once. - **`p`** — content addressing survives a move; a path survives a re-encode. Keeping both means either can repair the other: on a sight of the live index, -- cgit v1.2.3