pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Rowley <drowley@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Speedup WindowAgg code by moving uncommon code out-of-line
Date: Thu, 05 Sep 2024 04:00:29 +0000
Message-ID: <E1sm3fZ-000C2i-2p@gemulon.postgresql.org> (raw)

Speedup WindowAgg code by moving uncommon code out-of-line

The code to calculate the frame offsets is only performed once per scan.
Moving this code out of line gives a small (around 4-5%) speedup when testing
with some CPUs.  Other tested CPUs are indifferent to the change.

Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Reviewed-by: Tatsuo Ishii <ishii@postgresql.org>
Discussion: https://postgr.es/m/CAApHDvqPgFtwme2Zyf75BpMLwYr2mnUstDyPiP%3DEpudYuQTPPQ%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/19b861f880166fbdb67d268955e590881376f876

Modified Files
--------------
src/backend/executor/nodeWindowAgg.c | 140 +++++++++++++++++++----------------
1 file changed, 78 insertions(+), 62 deletions(-)



Message-ID: <E1sm3fZ-000C2i-2p@gemulon.postgresql.org>
Permalink:  ../E1sm3fZ-000C2i-2p@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1sm3fZ-000C2i-2p@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: drowley@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Speedup WindowAgg code by moving uncommon code out-of-line
  In-Reply-To: <E1sm3fZ-000C2i-2p@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox