Re: Re: Abbreviated keys for Numeric - Mailing list pgsql-hackers

From Andrew Gierth
Subject Re: Re: Abbreviated keys for Numeric
Date
Msg-id 87ppa1f8me.fsf@news-spur.riddles.org.uk
Whole thread Raw
In response to Re: Abbreviated keys for Numeric (was: Re: B-Tree support function number 3 (strxfrm() optimization))  (Peter Geoghegan <pg@heroku.com>)
Responses Re: Re: Abbreviated keys for Numeric
List pgsql-hackers
>>>>> "Peter" == Peter Geoghegan <pg@heroku.com> writes:
Peter> What I find particularly interesting about this patch is that itPeter> makes sorting numerics significantly
fasterthan even sortingPeter> float8 values,
 

I get a much smaller difference there than you do.

Obvious overheads in float8 comparison include having to check for NaN,
and the fact that DatumGetFloat8 on 64bit doesn't get inlined and forces
a store/load to memory rather than just using a register. Looking at
those might be more beneficial than messing with abbreviations.

-- 
Andrew (irc:RhodiumToad)



pgsql-hackers by date:

Previous
From: David Steele
Date:
Subject: Re: pg_upgrade and rsync
Next
From: Peter Geoghegan
Date:
Subject: Re: Re: Abbreviated keys for Numeric