Repository navigation
Fix WASM persistence, legacy restore, and buffer save/load - #13
Merged
Merged
Conversation
added 4 commits
October 20, 2026 00:00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #11
Fixes #12
save()/load()now round-trip through a versioned, checksummed buffer format, andtoBytes()/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/anddocs/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.