Re: [Benchmarking basics] Do performance patches target specific OSes/hardware?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: abhinav omprakash <abhinav(dot)omprakash10(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: [Benchmarking basics] Do performance patches target specific OSes/hardware?
Date: 2026-11-26 21:03:23
Message-ID: 1876689.1795727003@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-performance

abhinav omprakash <abhinav(dot)omprakash10(at)gmail(dot)com> writes:
> When someone is working on a performance patch, do they target
> a specific OS and hardware? Is this up to the user or is there a specific
> one the postgresql developer group prescribes?

I think most of the performance work that gets done around here is
platform-independent. We do sometimes worry about whether code is
amenable to auto-vectorization (for instance [1]), but that helps
on multiple platforms and typically doesn't hurt anywhere.

People do sometimes make platform-specific performance improvements,
such as [2]. We don't want to clutter our tree with too much
platform-specific code, and there's an expectation that you don't
make things worse for other platforms. But it does happen, and
there's not really any restrictions on what to target; you just
have to convince people that whatever-it-is is worth the trouble.
Marginal improvements are probably not going to get enough
attention to get committed.

(This is all just MHO, not any sort of project policy.)

regards, tom lane

[1] https://git.postgresql.org/gitweb/?a=commitdiff&h=158b6d510&p=postgresql.git
[2] https://git.postgresql.org/gitweb/?a=commitdiff&h=3d0b4b106&p=postgresql.git

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message abhinav omprakash 2026-11-27 06:02:27 Re: [Benchmarking basics] Do performance patches target specific OSes/hardware?
Previous Message abhinav omprakash 2026-11-26 17:52:57 [Benchmarking basics] Do performance patches target specific OSes/hardware?