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
from_bytes does not restore the keyed map — search_keyed is empty after reload #32
format.rs::from_bytes rebuilds codes, scales, n — but the slot→key map populated by add_keyed is never serialized, so key_of(slot) returns None for every slot and search_keyed filters everything out. remove_keyed also cannot find anything.
Proposal
Serialize the key table (slot → u64) in the file format — either a v1.2 header variant or a trailing keyed section that readers of v1/v1.1 ignore. Alternatively expose a minimal set_key(slot, key) so integrators can restore keys from their own sidecar.
Impact
Found while integrating vecq into cora-code's Brain Mode (codecoradev/cora-code#542): incremental workflows (remove-by-key after re-index) silently break after process restart. We currently work around it by rebuilding fresh on load; proper key serialization would let us drop the workaround.
Fixed by #36 (format v1.3 keyed-slot table): from_bytes now restores the full key→slot map, so search_keyed/remove_keyed/relabel all work after reload.
Activity
fix(core): persist the keyed map — file format v1.3 (#32) (#36)
ajianaz commentedon Aug 28, 2026
Fixed by #36 (format v1.3 keyed-slot table):
from_bytesnow restores the full key→slot map, sosearch_keyed/remove_keyed/relabelall work after reload.chore: release v0.3.0 to main (#46)
chore: release v0.3.1 to main (#55)