pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Move TupleTableSlots boolean member into one flag variable.
Date: Tue, 16 Oct 2018 01:53:54 +0000
Message-ID: <E1gCEYU-0008K8-Qm@gemulon.postgresql.org> (raw)

Move TupleTableSlots boolean member into one flag variable.

There's several reasons for this change:
1) It reduces the total size of TupleTableSlot / reduces alignment
   padding, making the commonly accessed members fit into a single
   cacheline (but we currently do not force proper alignment, so
   that's not yet guaranteed to be helpful)
2) Combining the booleans into a flag allows to combine read/writes
   from memory.
3) With the upcoming slot abstraction changes, it allows to have core
   and extended flags, in a memory efficient way.

Author: Ashutosh Bapat and Andres Freund
Discussion: https://postgr.es/m/20180220224318.gw4oe5jadhpmcdnm@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c5257345ef61922468cd9abd887c3cb6c38792cb

Modified Files
--------------
src/backend/access/common/heaptuple.c  |  7 ++-
src/backend/executor/execTuples.c      | 96 ++++++++++++++++++++--------------
src/backend/executor/nodeAgg.c         |  2 +-
src/backend/executor/nodeModifyTable.c |  2 +-
src/backend/jit/llvm/llvmjit_deform.c  |  9 ++--
src/backend/jit/llvm/llvmjit_expr.c    |  4 +-
src/include/executor/executor.h        |  2 +-
src/include/executor/tuptable.h        | 66 ++++++++++++++---------
8 files changed, 116 insertions(+), 72 deletions(-)



Message-ID: <E1gCEYU-0008K8-Qm@gemulon.postgresql.org>
Permalink:  ../E1gCEYU-0008K8-Qm@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gCEYU-0008K8-Qm@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: Move TupleTableSlots boolean member into one flag variable.
  In-Reply-To: <E1gCEYU-0008K8-Qm@gemulon.postgresql.org>
  References: <E1gCEYU-0008K8-Qm@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