summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_unicode.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2017-07-20 13:45:25 +0200
committerNikita Popov <nikita.ppv@gmail.com>2017-07-20 13:58:40 +0200
commitba383b82399f408da3fdb62d90d74a4314f9c689 (patch)
tree478ed99b2afe58c642ebb0280a2a081adf0e5b20 /ext/mbstring/php_unicode.c
parent264387e31e091ed51f86933c6f20f212436db61c (diff)
downloadphp-git-ba383b82399f408da3fdb62d90d74a4314f9c689.tar.gz
Add basic mbstring encoding cache
Store the last used encoding and compare against it. It's quite likely that an application is going to be using the same encoding again and again. The actual mbfl_name2encoding() function could also be optimized to use a hash lookup rather than a linear scan, but we don't have a hashtable implmentation in libmbfl...
Diffstat (limited to 'ext/mbstring/php_unicode.c')
0 files changed, 0 insertions, 0 deletions