Re: auto-vectorize varbit bitwise operators - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: auto-vectorize varbit bitwise operators
Date
Msg-id 139213bd-1c4c-4fb3-9d57-3c701b6db835@iki.fi
Whole thread
Responses Re: Use PG_MODULE_MAGIC_EXT macro in modules added in PG19
List 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




pgsql-hackers by date:

Previous
From: Kirk Wolak
Date:
Subject: Re: Add contrib module pg_stat_log: cumulative statistics about server log messages
Next
From: Peter Eisentraut
Date:
Subject: Re: WAIT FOR NO_THROW option could use some documentation