nextcloud/tests/lib/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 Add Tests 2016-10-05 11:00:16 +02:00
Cache Moves the logo files to logo 2018-10-02 08:37:54 +02:00
Config Allow getting the filepath when getting cached mounts by fileid 2017-10-27 14:35:34 +02:00
Mount Allow setting a maximun number of buckets for multibucket 2016-11-02 21:31:24 +01:00
Node Fix test 2018-03-22 12:06:45 +01:00
ObjectStore Moves the logo files to logo 2018-10-02 08:37:54 +02:00
SimpleFS Separate fopen into read and write methods 2018-07-11 12:08:37 +02:00
Storage Remove HHVM check 2018-10-09 10:12:15 +02:00
Stream make file cache updates more robust 2018-07-31 12:24:38 +02:00
Type Improve mimetype detection for object storages 2017-10-26 16:31:59 +02:00
Utils test: add unit test for files:scan --shallow 2018-05-18 14:51:08 -07:00
EtagTest.php Use proper methods for registerBackend 2017-08-15 11:29:15 +02:00
FileInfoTest.php add tests for FileInfo::isMounted 2016-11-16 15:30:37 +01:00
FilesystemTest.php Move normalizePath to regexes instead of looping 2018-10-10 13:23:59 +02:00
PathVerificationTest.php Fix risky tests without assertions 2018-01-25 11:33:25 +01:00
ViewTest.php Moves the logo files to logo 2018-10-02 08:37:54 +02:00