You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Alessandro Benedetti (Jira)" <ji...@apache.org> on 2022/04/20 14:56:00 UTC
[jira] [Updated] (LUCENE-10453) Speed up VectorUtil#squareDistance
[ https://issues.apache.org/jira/browse/LUCENE-10453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alessandro Benedetti updated LUCENE-10453:
------------------------------------------
Labels: vector-based-search (was: )
> Speed up VectorUtil#squareDistance
> ----------------------------------
>
> Key: LUCENE-10453
> URL: https://issues.apache.org/jira/browse/LUCENE-10453
> Project: Lucene - Core
> Issue Type: Task
> Reporter: Adrien Grand
> Priority: Minor
> Labels: vector-based-search
> Fix For: 9.1
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> {{VectorUtil#squareDistance}} is used in conjunction with {{VectorSimilarityFunction#EUCLIDEAN}}.
> It didn't get as much love as dot products (LUCENE-9837) yet there seems to be room for improvement. I wrote a quick JMH benchmark to run some comparisons: https://github.com/jpountz/vector-similarity-benchmarks.
> While it's not as fast as using the vector API (which makes squareDistance computations more than 2x faster), we can get a ~25% speedup by unrolling the loop in a similar way to what dot product does.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org