pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Fix compiler builtin usage in new pg_bitutils.c
Date: Fri, 15 Feb 2019 17:18:05 -0300
Message-ID: <20190215201804.GA791@alvherre.pgsql> (raw)
In-Reply-To: <18610.1550260649@sss.pgh.pa.us>

On 2019-Feb-15, Tom Lane wrote:

> Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> > I'm done with this stuff.  Anybody feel free to run with it, but for a
> > barely noticeable performance improvement it's not going to be me.
> 
> Sure, I'll pick it up.  I agree it's probably a marginal performance
> change, but it seems a shame to give up when we were 80% of the way
> there.

(BTW, my reading of the articles I cited, as well as my own runs of the
test programs therein, suggest that in order to get a really good
performance improvement you need to hand-code calls to the POPCNT
instruction in assembly rather than rely on the compiler intrinsics.  I
think there is^Wwas almost enough infrastructure to do that.  I'm not
sure that the operations being optimized by these changes are
interesting enough, in the grand scheme of things.)

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (8+ messages)  latest in thread

Message-ID: <20190215201804.GA791@alvherre.pgsql>
Permalink:  ../20190215201804.GA791@alvherre.pgsql/
Also on:    postgresql.org/message-id/20190215201804.GA791@alvherre.pgsql

 · 

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: alvherre@2ndquadrant.com, tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix compiler builtin usage in new pg_bitutils.c
  In-Reply-To: <20190215201804.GA791@alvherre.pgsql>
  References: <18610.1550260649@sss.pgh.pa.us> <20190215201804.GA791@alvherre.pgsql>

* 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