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

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: [HACKERS] [PATCH] SortSupport for macaddr type
Дата
Msg-id CAH2-WzmSOdXiWJBs7ZJO+WanE7TuQ6w4+_RkAGH_DyOhsts+9w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] [PATCH] SortSupport for macaddr type  (Peter Geoghegan <pg@bowt.ie>)
Ответы Re: [HACKERS] [PATCH] SortSupport for macaddr type  (Greg Stark <stark@mit.edu>)
Список pgsql-hackers
On Sat, Mar 18, 2017 at 2:54 PM, Peter Geoghegan <pg@bowt.ie> wrote:
> This seems fine to me, especially
> because it lets us compare macaddr using simple 3-way unsigned int
> comparisons, which isn't otherwise the case.

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.

-- 
Peter Geoghegan



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] mat views stats
Следующее
От: Andrew Gierth
Дата:
Сообщение: [HACKERS] Composite IS NULL again, this time with plpgsql