pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
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.

view thread (6+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-964-c4078672184@github.com>
Permalink:  ../gh-pgvector-pgvector-964-c4078672184@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox