Re: auto-vectorize varbit bitwise operators

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Nathan Bossart <nathandbossart(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: auto-vectorize varbit bitwise operators
Date: 2026-09-02 19:42:05
Message-ID: 139213bd-1c4c-4fb3-9d57-3c701b6db835@iki.fi
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 02/09/2026 21:57, Nathan Bossart wrote:
> After adding -ftree-vectorize and moving the loop boundary computations to
> outside the loops, popular compilers will auto-vectorize bit_and(),
> bit_or(), bitxor(), and bitnot(). My testing indicates this produces some
> nice speedups, but I haven't yet done anything scientific enough to share.
Dunno if these are particularly worth optimizing, but regardless of
performance, I think the loop code looks better with these changes anyway.

- Heikki

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2026-09-02 20:05:51 Re: WAIT FOR NO_THROW option could use some documentation
Previous Message Melanie Plageman 2026-09-02 19:29:06 Re: PGQ catalog representation and pg_dump support