Repository navigation
use UniversalRead in ImmutableDenseVectors - #8210
Merged
Merged
Conversation
coszio
commented
Feb 23, 2026
| pub fn open( | ||
| vectors_path: &Path, | ||
| deleted_path: &Path, | ||
| dim: usize, | ||
| with_async_io: bool, | ||
| madvise: AdviceSetting, |
Contributor
Author
There was a problem hiding this comment.
It also removes this propagated setting, which was actually set to AdviseSetting::Global everywhere
...renamed from MmapDenseVectors
coszio
force-pushed
the
immutable-dense-vectors
branch
from
February 24, 2026 12:42
3bdc57a to
8b45a20
Compare
ffuugoo
approved these changes
Feb 24, 2026
This comment was marked as resolved.
This comment was marked as resolved.
coszio
force-pushed
the
immutable-dense-vectors
branch
from
February 24, 2026 13:41
f760a1f to
8cc405e
Compare
ffuugoo
approved these changes
Feb 24, 2026
This was referenced Feb 28, 2026
This was referenced Mar 11, 2026
This was referenced Mar 19, 2026
generall
pushed a commit
that referenced
this pull request
Mar 26, 2026
* use UniversalRead in ImmutableDenseVectors ...renamed from MmapDenseVectors * remove madvise arg * async_raw_scorer
Merged
KShivendu
pushed a commit
that referenced
this pull request
Mar 30, 2026
* use UniversalRead in ImmutableDenseVectors ...renamed from MmapDenseVectors * remove madvise arg * async_raw_scorer
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.
Builds on top of #8196
Refactors
MmapDenseVectorsto use a genericUniversalReadstorage. By default still using mmap, but throughMmapUniversaltype.By doing this, we are forced to rename it to something more appropriate, I propose
ImmutableDenseVectors.Future work
The current storage interface is made to work with slices everywhere, but
UniversalReadworks withCow. What we probably want is a cow-like enum, which can handle either a slice (&[T]) or a boxed slice for the owned variant (Box<[T]>), which is a bit more lightweight than aVec<T>.