Re: Replace some cstring_to_text to cstring_to_text_with_len

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Replace some cstring_to_text to cstring_to_text_with_len
Дата
Msg-id ZPAHSzSM3/dP7e0m@paquier.xyz
обсуждение исходный текст
Ответ на Replace some cstring_to_text to cstring_to_text_with_len  (Ranier Vilela <ranier.vf@gmail.com>)
Ответы Re: Replace some cstring_to_text to cstring_to_text_with_len  (Ranier Vilela <ranier.vf@gmail.com>)
Список pgsql-hackers
On Wed, Aug 30, 2023 at 03:00:13PM -0300, Ranier Vilela wrote:
> cstring_to_text has a small overhead, because call strlen for
> pointer to char parameter.
>
> Is it worth the effort to avoid this, where do we know the size of the
> parameter?

Are there workloads where this matters?
--
Michael

Вложения

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

Предыдущее
От: Denis Smirnov
Дата:
Сообщение: Re: Use virtual tuple slot for Unique node
Следующее
От: Denis Smirnov
Дата:
Сообщение: Re: Use virtual tuple slot for Unique node