Re: Reduce build times of pg_trgm GIN indexes

From: David Geier <geidav(dot)pg(at)gmail(dot)com>
To: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com>
Cc: Japin Li <japinli(at)hotmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Reduce build times of pg_trgm GIN indexes
Date: 2026-11-09 15:33:45
Message-ID: 6ff57413-7fe3-4b8f-9380-993e3ed0a199@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Committed
> v11-0001-Use-branchless-comparisons-in-btint4cmp-and-btin.patch, since
> that one seems uncontroversial. Thanks!

Thanks!

>> In the case of btint4cmp(), it's only ever invoked from the function
>> manager, where it cannot be inlined.
>>
>> Or are there ways to invoke btint4cmp() that can be inlined, which I'm
>> unaware of?
>
> JIT compilation, maybe? Unless someone shows that there's a measurable
> problem though, I wouldn't worry about it.

Yes, but I reasoned that when inlined via JIT it's not used by a
sort_template.h

--
David Geier

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message ZizhuanLiu X-MAN 2026-11-09 15:52:21 Re: Optimize MCV stats for sortable types and utilize sorted-order properties
Previous Message David Geier 2026-11-09 15:31:31 Re: Reduce build times of pg_trgm GIN indexes