Skip to content

Batch IVFFlat distance scans in groups of four - #5598

Open
lyang24 wants to merge 1 commit into
facebookresearch:mainfrom
lyang24:perf/ivfflat-batch4
Open

Batch IVFFlat distance scans in groups of four#5598
lyang24 wants to merge 1 commit into
facebookresearch:mainfrom
lyang24:perf/ivfflat-batch4

Conversation

@lyang24

@lyang24 lyang24 commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

IVFFlat computed L2 and inner-product distances one database vector at a time, despite existing four-vector SIMD kernels.Use the existing batch-of-four kernels for unfiltered scans, with a scalar tail for remaining entries. Selector paths retain the existing implementation.

@meta-cla meta-cla Bot added the CLA Signed label Sep 7, 2026
@lyang24
lyang24 force-pushed the perf/ivfflat-batch4 branch from 34e6538 to a3f2475 Compare September 7, 2026 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant