Repository navigation
Dense vector storage based on universal I/O IoUringFile - #8452
Merged
Merged
Conversation
Contributor
Author
|
Draft for now, let's see if tests pass. 😬 |
Member
|
does more generics affect compile time? |
Contributor
Author
No idea. Did not even think about it. I do not expect it to be noticeable, though, we only added 3 new instantiations (vector storage for |
ffuugoo
marked this pull request as ready for review
March 19, 2026 12:40
This comment was marked as resolved.
This comment was marked as resolved.
generall
approved these changes
Mar 19, 2026
xzfc
approved these changes
Mar 19, 2026
coszio
reviewed
Mar 19, 2026
| /// Tries to utilize asynchronous IO if possible. | ||
| /// In particular, uses io_uring on Linux and simple synchronous IO otherwise. | ||
| pub fn read_vectors_async( | ||
| pub fn read_vectors_async<P: AccessPattern>( |
Contributor
There was a problem hiding this comment.
this _async suffix is kinda legacy now that it depends on the IO backend, doesn't it?
Contributor
Author
There was a problem hiding this comment.
Yeah, I just wanted to minimize changes in the PR. I plan to refactor async_raw_scorer later, and will clean this up as well.
Comment on lines
+31
to
+34
| CosineMetric: Metric<T>, | ||
| EuclidMetric: Metric<T>, | ||
| DotProductMetric: Metric<T>, | ||
| ManhattanMetric: Metric<T>, |
Contributor
There was a problem hiding this comment.
I hate we have to do this... Eagerly waiting for reverse implied bounds
…c`... ...to rely on `UniversalRead::read_batch` instead of `UringReader`
...and remove it from `DenseMemmap` as non-applicable
ffuugoo
force-pushed
the
io-uring-vector-storage
branch
from
March 19, 2026 21:04
7d29e0f to
70070d8
Compare
This was referenced Mar 20, 2026
generall
pushed a commit
that referenced
this pull request
Mar 26, 2026
KShivendu
pushed a commit
that referenced
this pull request
Mar 30, 2026
Merged
Merged
6 of 9 tasks
This was referenced Jun 5, 2026
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.
Refactor
MemmapDenseVectorStorageintoDenseVectorStorageImplthat can use different universal I/O backends and addVectorStorageEnum:: DenseUringvariants forIoUringFilevector storage impls.So far, I've left separate
async_raw_scorer, so that refactoring does not affect other storage types.Last two commits are renames/cleanups with no logic changes.
All Submissions:
devbranch. Did you create your branch fromdev?New Feature Submissions:
cargo +nightly fmt --allcommand prior to submission?cargo clippy --workspace --all-featurescommand?Changes to Core Features: