Re: [HACKERS] [PATCH] SortSupport for macaddr type

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: [HACKERS] [PATCH] SortSupport for macaddr type
Дата
Msg-id CAM-w4HP3Kw993tcbDe9pRNGA_sWSVaOysmSQBjCh7iVcJEeirQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] [PATCH] SortSupport for macaddr type  (Peter Geoghegan <pg@bowt.ie>)
Ответы Re: [HACKERS] [PATCH] SortSupport for macaddr type  (Peter Geoghegan <pg@bowt.ie>)
Список 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 по дате отправления:

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: [HACKERS] Removing binaries (was: createlang/droplang deprecated)
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: [HACKERS] Create replication slot in pg_basebackup if requestedand not yet present