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

From Vladimir Sitnikov
Subject Re: speed up verifying UTF-8
Date
Msg-id CAB=Je-EBXtsSGLNz3SdUacoBD2ad+Fk_s-RNJ1sjE2d-wnY-5g@mail.gmail.com
Whole thread Raw
In response to Re: speed up verifying UTF-8  (John Naylor <john.naylor@enterprisedb.com>)
Responses Re: speed up verifying UTF-8  (John Naylor <john.naylor@enterprisedb.com>)
List pgsql-hackers
>I'm pretty confident this improvement is architecture-independent.

Thanks for testing it with different architectures.

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.

Vladimir

pgsql-hackers by date:

Previous
From: Mark Dilger
Date:
Subject: Re: refactoring basebackup.c
Next
From: Robert Haas
Date:
Subject: Re: Parallel scan with SubTransGetTopmostTransaction assert coredump