]> source.dussan.org Git - nextcloud-server.git/commit
Use isset() instead of strlen()
authorLukas Reschke <lukas@owncloud.com>
Sat, 10 Jan 2015 10:50:07 +0000 (11:50 +0100)
committerLukas Reschke <lukas@owncloud.com>
Sat, 10 Jan 2015 11:06:51 +0000 (12:06 +0100)
commit310424db5d57536edcc9238224415756a1c8a624
treeadc4acf8c090d1b5c03c6b59254dfa45feeb4afb
parentae3483299cc8bfc226d8fe2a2501fd32c745c745
Use isset() instead of strlen()

Isset is a native language construct and thus A LOT faster than using strlen()

On my local machine this leads to a 1s performance gain for about 1 million paths. Considering that this function will be called a lot for every file operation this makes a noticable difference.
lib/private/files/view.php