summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_unicode.h
diff options
context:
space:
mode:
authorAlex Dowad <alexinbeijing@gmail.com>2020-06-28 00:25:13 +0200
committerAlex Dowad <alexinbeijing@gmail.com>2020-08-31 23:17:25 +0200
commitea3f0ee0b9d27ec07bc137f2672dead46e0b61c4 (patch)
tree1809be20783b86179d44518cc713359698f6ca37 /ext/mbstring/php_unicode.h
parentddc76e5abf0f962af56bceb0f1bde998582f9d82 (diff)
downloadphp-git-ea3f0ee0b9d27ec07bc137f2672dead46e0b61c4.tar.gz
Optimize php_unicode_convert_case (cuts mbstring case conversion time ~15%)
This function uses various subfunctions to convert case of Unicode wchars. Previously, these subfunctions would store the case-converted characters in a buffer, and the parent function would then pass them (byte by byte) to the next filter in the filter chain. Rather than passing around that buffer, it's better for the subfunctions to directly pass the case-converted bytes to the next filter in the filter chain. This speeds things up nicely.
Diffstat (limited to 'ext/mbstring/php_unicode.h')
0 files changed, 0 insertions, 0 deletions