Re: [HACKERS] [PATCH] SortSupport for macaddr type - Mailing list pgsql-hackers

From Greg Stark
Subject Re: [HACKERS] [PATCH] SortSupport for macaddr type
Date
Msg-id CAM-w4HP3Kw993tcbDe9pRNGA_sWSVaOysmSQBjCh7iVcJEeirQ@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] [PATCH] SortSupport for macaddr type  (Peter Geoghegan <pg@bowt.ie>)
Responses Re: [HACKERS] [PATCH] SortSupport for macaddr type  (Peter Geoghegan <pg@bowt.ie>)
List pgsql-hackers
On 18 March 2017 at 22:22, Peter Geoghegan <pg@bowt.ie> wrote:
>
> Out of idle curiosity, I decided to generate disassembly of both
> macaddr_cmp_internal(), and the patch's abbreviated comparator. The
> former consists of 49 x86-64 instructions at -02 on my machine,
> totaling 135 bytes of object code. The latter consists of only 10
> instructions, or 24 bytes of object code.

I wonder if there's something that could be optimized out of the
normal cmp function but we're defeating some compiler optimizations
with all our casts and aliasing.


-- 
greg



pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: [HACKERS] Removing binaries (was: createlang/droplang deprecated)
Next
From: Magnus Hagander
Date:
Subject: Re: [HACKERS] Create replication slot in pg_basebackup if requestedand not yet present