| From: | Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> |
|---|---|
| To: | Nathan Bossart <nathandbossart(at)gmail(dot)com> |
| Cc: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: auto-vectorize varbit bitwise operators |
| Date: | 2026-09-03 02:01:49 |
| Message-ID: | D0092B03-7156-4257-966C-E3C68EA96811@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
> On Sep 3, 2026, at 02:57, Nathan Bossart <nathandbossart(at)gmail(dot)com> 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.
>
> --
> nathan
> <v1-0001-Auto-vectorize-the-varbit-bitwise-operators.patch>
I think this should improve performance on CPUs with SIMD support. It also improves code readability.
Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2026-09-03 02:04:39 | Re: Be strict when request to flush past end of WAL in WaitXLogInsertionsToFinish |
| Previous Message | Bharath Rupireddy | 2026-09-03 01:13:26 | Re: Be strict when request to flush past end of WAL in WaitXLogInsertionsToFinish |