diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-01-09 23:34:26 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-01-10 12:12:40 +0100 |
commit | e80ece9a2b39d18eea356196a08211c6b36a4048 (patch) | |
tree | 5cd8837d5bae6b1caca4fffd1ea1ed7bcfe81b3e /lib/private/files/filesystem.php | |
parent | ae3483299cc8bfc226d8fe2a2501fd32c745c745 (diff) | |
download | nextcloud-server-e80ece9a2b39d18eea356196a08211c6b36a4048.tar.gz nextcloud-server-e80ece9a2b39d18eea356196a08211c6b36a4048.zip |
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
Diffstat (limited to 'lib/private/files/filesystem.php')
0 files changed, 0 insertions, 0 deletions