com php-src: Change layout of case mapping table: ext/mbstring/ php_unicode.c ext/mbstring/ucgendat/ucgendat.c ext/mb string/unicode_data.h
| From: | Nikita Popov | Date: | Sun, 23 Jul 2017 16:33:15 +0000 |
| Subject: | com php-src: Change layout of case mapping table: ext/mbstring/ php_unicode.c ext/mbstring/ucgendat/ucgendat.c ext/mb string/unicode_data.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-98758@lists.php.net to get a copy of this message | ||
Commit: 3c6b2512cb24dfe8896d88115ba7468e7392809b
Author: Nikita Popov <nikita.ppv@gmail.com> Sun, 23 Jul 2017 18:26:44 +0200
Parents: 78944bdfc6452624f9075b9e7e550cfa9c7ccdc3
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3c6b2512cb24dfe8896d88115ba7468e7392809b
Log:
Change layout of case mapping table
Previously the case mapping table was segregated by the type of
the character (upper, lower, title) and always stored the other
two variants (key, other1, other2). Now the table is segregated
by the target type (key, other). As only very few characters have
more than one target this only slightly increases the size of the
table.
The advantage of this layout is that we only need to perform a
single table lookup in the case table. Previously, depending on
the case that was hit, either one lookup in the property table,
or two lookups in the property table and one lookup in the case
table were required.
This changes the layout from libunicode in the OpenLDAP project
-- however, the last commit there was over 10 years ago, so I
don't see value in keeping this in sync.
Changed paths:
M ext/mbstring/php_unicode.c
M ext/mbstring/ucgendat/ucgendat.c
M ext/mbstring/unicode_data.h
Diff: <Diff exceeded maximum size>