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

Поиск
Список
Период
Сортировка
От David Rowley
Тема Small improvement to json out functions by using cstring_to_text_with_len instead of cstring_to_text
Дата
Msg-id CAApHDvoBeogDdc5g6FzyRkGOCJmtAa6vk3yg03CqcwCRbYErZw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Small improvement to json out functions by using cstring_to_text_with_len instead of cstring_to_text  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
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.

Regards

David Rowley



Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Logging WAL when updating hintbit
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: ALTER SYSTEM SET command to change postgresql.conf parameters (RE: Proposal for Allow postgresql.conf values to be changed via SQL [review])