]> granicus.if.org Git - php/commit
Use MPH for case maps
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 25 Jul 2017 22:06:17 +0000 (00:06 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 28 Jul 2017 10:32:50 +0000 (12:32 +0200)
commit80a0601fe52b9dddbef34a168a2c1136177bda23
treebdebc656b159fa037c458b05ec75c211eccd2cbe
parentf56b0afe6eb3ec0dd6ec5ee6ec5cee429e41c7e5
Use MPH for case maps

Instead of performing a binary search, use a hashtable to store
the case maps. In particular a minimal perfect hash construction
is used, which does not require collision resolution (but does
use an auxiliary table for the hash perturbation).
ext/mbstring/php_unicode.c
ext/mbstring/ucgendat/ucgendat.php
ext/mbstring/unicode_data.h