From: R3gardless (@R3gardless) <noreply+R3gardless@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #967: `halfvec` table + index shows unexpected QPS degradation and slower index build vs `vector`/flat in HNSW
Date: Mon, 09 Mar 2026 14:18:10 +0000
Message-ID: <gh-pgvector-pgvector-967-c4024119553@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-967@github.com>
References: <gh-pgvector-pgvector-967@github.com>
Hi @jkatz, thanks for the response.
You might be right that SIMD is the issue. I installed pgvector from the PGDG RPM repository, So I didn't explicitly control the compiler flags.
I checked that my experiment envrionment support SIMD instruction using following command:
```
cat /proc/cpuinfo | grep flags | head -1
```
The flags include `avx`, `avx2` and `avx512*`.
Also I checked the installed vector shared library (vector.so) file, I couldn't find SIMD registers in the compiled binary using following command:
```
objdump -d -M intel /usr/pgsql-15/lib/vector.so | egrep '\b(xmm|ymm|zmm)\b' | head
```
Based on this, I'm currently thinking that the halfvec test cases may not be using the SIMD path, which could explain the performance degradation I observed. However, I'm not sure if this is the correct way to verify it.
Does this seem like the right direction to investigate?
Thanks.