Re: Small improvement to json out functions by using cstring_to_text_with_len instead of cstring_to_text

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Small improvement to json out functions by using cstring_to_text_with_len instead of cstring_to_text
Дата
Msg-id CA+TgmoYFTbwKt=hbKhKf-j6=2TMJmqRJAYtV+=eo5+QzPOMcwQ@mail.gmail.com
обсуждение исходный текст
Ответ на Small improvement to json out functions by using cstring_to_text_with_len instead of cstring_to_text  (David Rowley <dgrowleyml@gmail.com>)
Список pgsql-hackers
On Thu, Nov 14, 2013 at 2:18 AM, David Rowley <dgrowleyml@gmail.com> wrote:
> Hi,
>
> Here's a small patch which should speedup json out functions a little bit by
> removing a call to strlen for which could be a long string.
> The length of the string is already known by the StringInfoData, so there's
> no point in letting cstring_to_text() loop over the whole string again.

Committed.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Haribabu kommi
Дата:
Сообщение: Re: ALTER SYSTEM SET command to change postgresql.conf parameters (RE: Proposal for Allow postgresql.conf values to be changed via SQL [review])
Следующее
От: Will Crawford
Дата:
Сообщение: Re: Can we add sample systemd service file to git repo?