]> source.dussan.org Git - nextcloud-server.git/commit
Cache results of `normalizePath`
authorLukas Reschke <lukas@owncloud.com>
Sat, 10 Jan 2015 09:48:28 +0000 (10:48 +0100)
committerLukas Reschke <lukas@owncloud.com>
Sat, 10 Jan 2015 10:10:38 +0000 (11:10 +0100)
commit7e11ca06f69e3c6b5b21365232297259930548fe
tree0e121af4551ca8520f79ea452bdb94b7a30e211a
parentae3483299cc8bfc226d8fe2a2501fd32c745c745
Cache results of `normalizePath`

`normalizePath` is a rather expensive operation and called multiple times for a single path for every file related operation.

In my development installation with about 9GB of data and 60k files this leads to a performance boost of 24% - in seconds that are 1.86s (!) - for simple searches. With more files the impact will be even more noticeable. Obviously this affects every operation that has in any regard something to do with using OC\Files\Filesystem.

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