Skip to content

Conversation

coszio
Copy link
Contributor

@coszio coszio commented Aug 6, 2025

To appropriately buffer writes to the deleted bitslice in the vector storages, we need to have a structure like BitvecFlags which buffers updates, but also keeps a fast in-memory copy of the bitslice.

In #6990 we introduced the structure. This PR does two things:

  1. moves all the flags files into a single module
  2. integrates the BitvecFlags where DynamicMmapFlags was being used directly.

@coszio coszio requested review from timvisee and generall August 6, 2025 22:28
@timvisee timvisee force-pushed the use-bitvec-flags-in-vector-storages branch from 16389a2 to ca93538 Compare August 7, 2025 08:55
@timvisee timvisee self-assigned this Aug 7, 2025
Base automatically changed from bitvec-flags to dev August 7, 2025 09:30
@timvisee timvisee force-pushed the use-bitvec-flags-in-vector-storages branch from ca93538 to 12bdc84 Compare August 7, 2025 09:31

This comment was marked as resolved.

@timvisee timvisee merged commit 0a1a3d6 into dev Aug 7, 2025
16 checks passed
@timvisee timvisee deleted the use-bitvec-flags-in-vector-storages branch August 7, 2025 09:54
timvisee added a commit that referenced this pull request Aug 11, 2025
* put all flags impls in a single module

* use in appendable_dense_vector_storage

* use in appendable_mmap_multi_dense_storage

* use in mmap_sparse_vector_storage

* clippy

* Add comment we cannot rely on length of deleted vectors bitvec

---------

Co-authored-by: timvisee <tim@visee.me>
@timvisee timvisee mentioned this pull request Aug 11, 2025
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.

2 participants