pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Use static inline functions for Float <-> Datum conversions
Date: Wed, 31 Aug 2016 07:38:34 -0400
Message-ID: <6355.1472643514@sss.pgh.pa.us> (raw)
In-Reply-To: <dbb82a4a-2c15-ba27-dd0a-009d2aa72b77@iki.fi>
References: <dbb82a4a-2c15-ba27-dd0a-009d2aa72b77@iki.fi>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Heikki Linnakangas <hlinnaka@iki.fi> writes:
> Now that we are OK with static inline functions, we can save some cycles 
> from floating-point functions, by turning Float4GetDatum, 
> Float8GetDatum, and DatumGetFloat8 into static inlines.

Looks good to me.

I wonder whether there is a compiler-dependent way of avoiding the union
trick ... or maybe gcc is already smart enough that it doesn't matter?

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (4+ messages)  latest in thread

Message-ID: <6355.1472643514@sss.pgh.pa.us>
Permalink:  ../6355.1472643514@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6355.1472643514@sss.pgh.pa.us

 · 

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-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, hlinnaka@iki.fi
  Subject: Re: Use static inline functions for Float <-> Datum conversions
  In-Reply-To: <6355.1472643514@sss.pgh.pa.us>
  References: <dbb82a4a-2c15-ba27-dd0a-009d2aa72b77@iki.fi> <6355.1472643514@sss.pgh.pa.us>

* 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