]> source.dussan.org Git - nextcloud-server.git/commit
Verify whether value is already normalized
authorLukas Reschke <lukas@owncloud.com>
Fri, 9 Jan 2015 22:34:26 +0000 (23:34 +0100)
committerLukas Reschke <lukas@owncloud.com>
Sat, 10 Jan 2015 11:12:40 +0000 (12:12 +0100)
commite80ece9a2b39d18eea356196a08211c6b36a4048
tree5cd8837d5bae6b1caca4fffd1ea1ed7bcfe81b3e
parentae3483299cc8bfc226d8fe2a2501fd32c745c745
Verify whether value is already normalized

Apparently `normalizer_normalize` is not verifying itself whether the string needs to be converted or not. Or does it at least not very performantly.

This simple change leads to a 4% performance gain on the processing of normalizeUnicode. Since this method is called quite often (i.e. for every file path) this has actually a measurable impact. For examples searches are now 200ms faster on my machine. Still not perfect but way to go.

Part of https://github.com/owncloud/core/issues/13221
lib/private/util.php