From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] PR #860: vectorize: optimize VectorSumCenter and HalfvecSumCenter
Date: Wed, 18 Jun 2025 19:29:00 +0000
Message-ID: <gh-pgvector-pgvector-860-r2940430642@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-860@github.com>
References: <gh-pgvector-pgvector-860@github.com>
Some results from my testing for the k-means stage (with 1,000 lists):
Platform | Dataset | Type | Before (sec) | After (sec)
--- | --- | --- | --- | ---
Linux x86-64 | SIFT | vector | 7.3 | 7.2
Mac arm64 | SIFT | vector | 3.52 | 3.48
Mac arm64 | SIFT | halfvec | 4.33 | 4.25
Linux x86-64 | GIST | vector | 36.0 | 34.8
Mac arm64 | GIST | vector | 14.6 | 14.1
Mac arm64 | GIST | halfvec | 15.2 | 14.5
It's not a big difference (especially when you factor in the rest of the index build time), but seems fine to include. Added a few comments inline.