Re: speed up verifying UTF-8

From: Greg Stark <stark(at)mit(dot)edu>
To: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Cc: John Naylor <john(dot)naylor(at)enterprisedb(dot)com>, Amit Khandekar <amitdkhan(dot)pg(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: speed up verifying UTF-8
Date: 2021-06-03 14:33:59
Message-ID: CAM-w4HNDsv3EGPYh4NekwjFC=g_2aBMDgn87xBiBkkB-yiTL7w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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) ?

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2021-06-03 14:41:41 Re: speed up verifying UTF-8
Previous Message Daniel Gustafsson 2021-06-03 14:20:10 Re: pg_upgrade is failed for 'plpgsql_call_handler' handler