[php-src] PR #12300: Fix GH-11997: ctype_alnum 5 times slower in PHP 8.1 or greater
| From: | nielsdos | Date: | Mon, 25 Sep 2023 18:22:37 +0000 |
| Subject: | [php-src] PR #12300: Fix GH-11997: ctype_alnum 5 times slower in PHP 8.1 or greater | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-23709@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12300
Author: nielsdos
Currently, a common function is used where a function pointer gets passed to check the character
class type. If we instead use a macro, the macro version of these character class type checkers can
be used. While this gives only a minor speed-up for glibc-based systems, on Alpine this gives a
multi-facor speed-up
This is essentially a manual revert of dc80ea7e38.
Full discussion in GH-11997.