Re: micro-optimize nbtcompare.c routines

2024-09-27 Thread Nathan Bossart
I've marked this one as Withdrawn. Apologies for the noise. -- nathan

Re: micro-optimize nbtcompare.c routines

2024-09-26 Thread Nathan Bossart
On Fri, Sep 27, 2024 at 02:50:13PM +1200, David Rowley wrote: > I had been looking at [1] (which I've added your version to now). I > had been surprised to see gcc emitting different code for the first 3 > versions. Clang does a better job at figuring out they all do the same > thing and emitting t

Re: micro-optimize nbtcompare.c routines

2024-09-26 Thread David Rowley
On Fri, 27 Sept 2024 at 08:17, Nathan Bossart wrote: > Here's a patch that adjusts several routines in nbtcompare.c and related > files to use the branchless integer comparison functions added in commit > 6b80394. It's probably unlikely this produces a measurable benefit (at > least I've been una

micro-optimize nbtcompare.c routines

2024-09-26 Thread Nathan Bossart
figured I'd post it. -- nathan >From bd2e1eb92b28cf855b529b09813f1b09084c7cfc Mon Sep 17 00:00:00 2001 From: Nathan Bossart Date: Thu, 26 Sep 2024 15:03:32 -0500 Subject: [PATCH v1 1/1] micro-optimize nbtcompare.c routines --- src/backend/access/nbtree/nbtcompare.c | 162 --