Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use fma in SIMD Euclidean/cosine #153

Merged
merged 1 commit into from
Nov 20, 2023
Merged

Use fma in SIMD Euclidean/cosine #153

merged 1 commit into from
Nov 20, 2023

Conversation

jkni
Copy link
Collaborator

@jkni jkni commented Nov 16, 2023

We already use SIMD fma in our dot product implementations, so we shouldn't be particularly concerned about compatibility concerns here (and all recent platforms support this). This produces a noticeable improvement on JMH microbenchmarks, no noticeable regressions in any workloads I've tested, and a slight improvement on memtable searches for larger vectors.

@jkni jkni merged commit 0e5d38a into jbellis:main Nov 20, 2023
4 checks passed
@jkni jkni deleted the more-fma branch November 20, 2023 14:49
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.

3 participants