From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] PR #964: Optimize sparsevec L1/L2 distance traversal
Date: Tue, 17 Mar 2026 23:35:13 +0000
Message-ID: <gh-pgvector-pgvector-964-c4078672184@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-964@github.com>
References: <gh-pgvector-pgvector-964@github.com>
I'm seeing a regression on Linux and a speedup on Mac with seq scans, 100k vectors, 32k dimensions, and nnz = uniform(100, 1000):
Platform | L2 | L1 | IP ([branch](https://github.com/pgvector/pgvector/compare/sparsevec-ip))
--- | --- | --- | ---
Linux x86-64 | 1.00 | 0.98 | 0.97
Linux aarch64 | 0.95 | 0.97 | 0.97
Mac arm64 | 1.15 | 1.31 | 1.31
I also tried a static nnz, but the results were similar.