Re: Add palloc_aligned() to allow arbitrary power of 2 memory alignment
David Rowley <dgrowleyml@gmail.com>
From: David Rowley <dgrowleyml@gmail.com>
To: John Naylor <john.naylor@enterprisedb.com>
Cc: Andres Freund <andres@anarazel.de>, PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2022-11-08T03:54:25Z
Lists: pgsql-hackers
On Tue, 8 Nov 2022 at 15:17, John Naylor <john.naylor@enterprisedb.com> wrote: > > > On Tue, Nov 8, 2022 at 8:57 AM David Rowley <dgrowleyml@gmail.com> wrote: > > Is there anything we could align to CPU cacheline size that would > > speed something up? > > InitCatCache() already has this, which could benefit from simpler notation. Thanks. I wasn't aware. I'll convert that to use palloc_aligned in the patch. David
Commits
-
Add palloc_aligned() to allow aligned memory allocations
- 439f61757f05 16.0 landed