Re: src/port/snprintf.c: Optimize the common base=10 case in fmtint

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: src/port/snprintf.c: Optimize the common base=10 case in fmtint
Дата
Msg-id 106306.1635270715@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: src/port/snprintf.c: Optimize the common base=10 case in fmtint  (Mark Dilger <mark.dilger@enterprisedb.com>)
Ответы Re: src/port/snprintf.c: Optimize the common base=10 case in fmtint  (Arjan van de Ven <arjan@linux.intel.com>)
Список pgsql-hackers
Mark Dilger <mark.dilger@enterprisedb.com> writes:
> It appears fmtint only has three options for base, being 10, 16, and 8.  Have you profiled with either of the others
specialcased as well?  I don't see much use in optimizing for octal, but hexadecimal is used quite a bit in wal with
patternslike "%08X%08X%08X". 

I'd be inclined to just hard-wire the three allowed cases, and not have
an arbitrary-divisor code path at all.

            regards, tom lane



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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: pg_dump versus ancient server versions
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: pg_dump versus ancient server versions