Re: Replace some cstring_to_text to cstring_to_text_with_len - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Replace some cstring_to_text to cstring_to_text_with_len
Date
Msg-id ZPAHSzSM3/dP7e0m@paquier.xyz
Whole thread Raw
In response to Replace some cstring_to_text to cstring_to_text_with_len  (Ranier Vilela <ranier.vf@gmail.com>)
Responses Re: Replace some cstring_to_text to cstring_to_text_with_len
List 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

Attachment

pgsql-hackers by date:

Previous
From: Denis Smirnov
Date:
Subject: Re: Use virtual tuple slot for Unique node
Next
From: Denis Smirnov
Date:
Subject: Re: Use virtual tuple slot for Unique node