]> source.dussan.org Git - nextcloud-server.git/commit
Reuse the array key of mimetypes
authorLukas Reschke <lukas@owncloud.com>
Sun, 18 Jan 2015 13:48:24 +0000 (14:48 +0100)
committerLukas Reschke <lukas@owncloud.com>
Sun, 18 Jan 2015 13:50:34 +0000 (14:50 +0100)
commit309cc9a6caac2295be74bc04cbd10e6256103988
tree9be57ad3764be91873e1b462b736c74df25ab126
parent60c4cb1dd669a0c40abcff50a636d7b4cb6469e0
Reuse the array key of mimetypes

This function is called a lot of times and was really slow before due to not reusing the same array.

Previously when it was called 500'000 times it took about 2seconds, now we're down to 0.2 seconds on my local machine.

Ref https://github.com/owncloud/core/issues/13434
lib/private/helper.php