Re: speed up verifying UTF-8

Greg Stark <stark@mit.edu>

From: Greg Stark <stark@mit.edu>
To: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: John Naylor <john.naylor@enterprisedb.com>, Amit Khandekar <amitdkhan.pg@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2021-06-03T14:33:59Z
Lists: pgsql-hackers
> 3. It's probably cheaper perform the HAS_ZERO check just once on (half1
| half2). We have to compute (half1 | half2) anyway.

Wouldn't you have to check (half1 & half2) ?



Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Simplify coding style of is_valid_ascii()

  2. Apply auto-vectorization to the inner loop of numeric multiplication.