From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use perfect hash for NFC and NFKC Unicode Normalization quick ch
Date: Sun, 11 Oct 2020 10:15:32 +0000
Message-ID: <E1kRYO4-00070b-Lp@gemulon.postgresql.org> (raw)
Use perfect hash for NFC and NFKC Unicode Normalization quick check
This makes the normalization quick check about 30% faster for NFC and
50% faster for NFKC than the binary search used previously. The hash
lookup reuses the existing array of bit fields used for the binary
search to get the quick check property and is generated as part of "make
update-unicode" in src/common/unicode/.
Author: John Naylor
Reviewed-by: Mark Dilger, Michael Paquier
Discussion: https://postgr.es/m/CACPNZCt4fbJ0_bGrN5QPt34N4whv=mszM0LMVQdoa2rC9UMRXA@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/80f8eb79e24d9b7963eaf17ce846667e2c6b6e6f
Modified Files
--------------
.../unicode/generate-unicode_normprops_table.pl | 41 +-
src/common/unicode_norm.c | 48 +-
src/include/common/unicode_normprops_table.h | 1610 +++++++++++++++++++-
src/tools/pgindent/exclude_file_patterns | 5 +
src/tools/pgindent/typedefs.list | 1 +
5 files changed, 1681 insertions(+), 24 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz
Subject: Re: pgsql: Use perfect hash for NFC and NFKC Unicode Normalization quick ch
In-Reply-To: <E1kRYO4-00070b-Lp@gemulon.postgresql.org>
References: <E1kRYO4-00070b-Lp@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox