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:36:00 UTC
[jira] [Updated] (LUCENE-10142) use a better RNG for Hnsw vectors
[ https://issues.apache.org/jira/browse/LUCENE-10142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alessandro Benedetti updated LUCENE-10142:
------------------------------------------
Labels: vector-based-search (was: )
> use a better RNG for Hnsw vectors
> ---------------------------------
>
> Key: LUCENE-10142
> URL: https://issues.apache.org/jira/browse/LUCENE-10142
> Project: Lucene - Core
> Issue Type: Task
> Reporter: Robert Muir
> Priority: Major
> Labels: vector-based-search
> Fix For: 9.0
>
> Attachments: LUCENE-10142.patch
>
>
> When profiling indexing with vectors at http://people.apache.org/~mikemccand/lucenebench/, I see a fair amount of time spent in java.util.Random.
> {noformat}
> PERCENT CPU SAMPLES STACK
> ...
> 7.30% 305461 java.util.Random#nextInt()
> {noformat}
> We don't need its thread-safety guarantees (CAS loop etc).
> We can use SplittableRandom as a drop-in replacement.
--
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