Re: speed up verifying UTF-8 - Mailing list pgsql-hackers

From John Naylor
Subject Re: speed up verifying UTF-8
Date
Msg-id CAFBsxsFF58cGZx5fhv=mff8fFQp5OVWwhmLQAbS9D1xqjJLJKA@mail.gmail.com
Whole thread Raw
In response to Re: speed up verifying UTF-8  (Vladimir Sitnikov <sitnikov.vladimir@gmail.com>)
Responses Re: speed up verifying UTF-8  (John Naylor <john.naylor@enterprisedb.com>)
List pgsql-hackers

On Wed, Jul 21, 2021 at 12:13 PM Vladimir Sitnikov <sitnikov.vladimir@gmail.com> wrote:
> It looks like the same utf8_advance function is good for both fast-path and for the slow path.
> Then pg_utf8_verifychar could be removed altogether along with the corresponding IS_*_BYTE_LEAD macros.

pg_utf8_verifychar() is a public function usually called through pg_wchar_table[], so it needs to remain in any case.

--
John Naylor
EDB: http://www.enterprisedb.com

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: refactoring basebackup.c
Next
From: Tom Lane
Date:
Subject: Re: Case expression pushdown