Re: FW: REVIEW: Allow formatting in log_line_prefix

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: FW: REVIEW: Allow formatting in log_line_prefix
Дата
Msg-id 20130924165104.GQ4832@eldon.alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: FW: REVIEW: Allow formatting in log_line_prefix  (David Rowley <dgrowleyml@gmail.com>)
Ответы Re: FW: REVIEW: Allow formatting in log_line_prefix  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
David Rowley escribió:

> I do see a 15-18% slow down with the patched version, so perhaps I'll need
> to look to see if I can speed it up a bit, although I do feel this
> benchmark is not quite a normal workload.

Ouch.  That's certainly way too much.  Is the compiler inlining
process_log_prefix_padding()?  If not, does it do it if you add "inline"
to it?  That might speed up things a bit.  If that's not enough, maybe
you need some way to return to the original coding for the case where no
padding is set in front of each option.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



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

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: [PATCH] bitmap indexes
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: record identical operator