Skip to content

Fix WASM persistence, legacy restore, and buffer save/load - #13

Merged
matte1782 merged 4 commits into
mainfrom
fix/wasm-persistence-11-12
Oct 19, 2026
Merged

matte1782 merged 4 commits into
mainfrom
fix/wasm-persistence-11-12

Conversation

@matte1782

@matte1782 matte1782 commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

Fixes #11
Fixes #12

save()/load() now round-trip through a versioned, checksummed buffer format, and toBytes()/fromBytes() let Node and Tauri applications persist those bytes themselves. IndexedDB opens, missing databases, broken v1 stores, and blocked concurrent repairs now settle reliably and recover after an old connection closes.

Restore validates storage, graph, metadata, bit-vector bounds, and neighbor allocations before exposing an index. Real 0.8.0/0.9.0 fixtures verify legacy compatibility, including metadata, deletions, search order, and binary quantization. The raw package and Pages demo WASM bundles are refreshed; Node examples use filesystem buffer persistence.

Validation includes 3,483 native tests, strict native/WASM Clippy, 10 WASM fixture tests, 11 IndexedDB tests, actual WASM/IndexedDB end-to-end tests, and 200,000 malformed-buffer mutations. Three fresh-process measurements per mode load 100k x128 vectors in 241–358 ms. Release measurements, raw trials, and the second hostile review are committed under docs/reviews/ and docs/benchmarks/.

CI resolves the matching wasm-bindgen runner from a generated lockfile and executes the persistence bindings. ARM validation runs on native ARM64 hardware; bitvec stays on its validated 1.0 minor line for the fixed MSRV. The optional mobile matrix has locked Node 22 dependencies, complete generated assets, scalar WASM for legacy Safari, and assertions using the actual returned vector ID. Miri checks remain enabled, and merging requires green hosted checks.

@matte1782
matte1782 merged commit 36ef294 into main Oct 19, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IndexedDB corrupted data Expose buffer based save/load

1 participant