auto-vectorize varbit bitwise operators

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: auto-vectorize varbit bitwise operators
Date: 2026-09-02 18:57:51
Message-ID: aphxrw6NkYkLMtZN@nathan
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

--
nathan

Attachment Content-Type Size
v1-0001-Auto-vectorize-the-varbit-bitwise-operators.patch text/plain 4.4 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jelte Fennema-Nio 2026-09-02 19:14:04 Re: Bypassing cursors in postgres_fdw to enable parallel plans
Previous Message Ayush Tiwari 2026-09-02 18:57:19 Re: [Patch] Batch fsyncs when recycling WAL segments