From: | Nathan Bossart <nathandbossart(at)gmail(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | micro-optimize nbtcompare.c routines |
Date: | 2024-09-26 20:17:03 |
Message-ID: | ZvXBP3Rbfmris0yf@nathan |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
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 unable to find any in my admittedly-limited testing), but
in theory it should save a cycle here and there. I was hoping that this
would trim many lines of code, but maintaining the STRESS_SORT_INT_MIN
stuff eats up most of what we save.
Anyway, I don't feel too strongly about this patch, but I went to the
trouble of writing it, and so I figured I'd post it.
--
nathan
Attachment | Content-Type | Size |
---|---|---|
v1-0001-micro-optimize-nbtcompare.c-routines.patch | text/plain | 8.6 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Nathan Bossart | 2024-09-26 20:53:33 | Re: Large expressions in indexes can't be stored (non-TOASTable) |
Previous Message | Tom Lane | 2024-09-26 20:06:51 | Re: Retiring is_pushed_down |