server/lib/private/Files
Roeland Jago Douma d5bf2c4523
Move normalizePath to regexes instead of looping
This is IMO a bit more readable and it seems to make the code faster.
Tested it on the company instance where there are over 3k calls to this
function. It shaves off around 10ms.

The advantage here is that the pattern gets optimized by php itsel and
cached.
Also looking for all patterns at the same time and especially no longer
looping for /./ patterns should save time.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-10-10 13:23:59 +02:00
..
AppData Make Appdata static 2018-05-14 13:25:54 +02:00
Cache cleanup locks in scanner on error 2018-05-04 18:05:46 +02:00
Config more efficient way to detect added and removed mounts 2018-08-16 19:56:49 +02:00
Mount cache OC\Files\Mount\Manager::findIn results 2018-08-16 19:02:00 +02:00
Node fix double slash in search result path when the result is in a submount 2018-07-02 14:17:38 +02:00
Notify Add a more powerful notify mechanism 2017-01-27 10:44:33 +01:00
ObjectStore Fix listing s3 objects when using google cloud aws compatibility 2018-06-11 17:10:57 +02:00
Search Update license headers 2017-11-06 16:56:19 +01:00
SimpleFS Separate fopen into read and write methods 2018-07-11 12:08:37 +02:00
Storage Do not log to error loglevel when converting the error 2018-08-06 16:31:30 +02:00
Stream make file cache updates more robust 2018-07-31 12:24:38 +02:00
Type use insertIfNotExists to store new mimetypes. 2018-08-09 15:20:55 +02:00
Utils Do scan the root storage in background scan 2018-07-24 14:15:27 +02:00
FileInfo.php Update license headers 2017-11-06 16:56:19 +01:00
Filesystem.php Move normalizePath to regexes instead of looping 2018-10-10 13:23:59 +02:00
View.php tokens can't be valid local user names 2018-08-16 21:27:57 +02:00