Skip to content
Commit 309cc9a6 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

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
parent 60c4cb1d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment