Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Use isset() instead of strlen() #13236
Isset is a native language construct and thus A LOT faster than using strlen() (5x - 40x depending on input)
On my local machine this leads to a per average 20% performance gain, for about 1 million processed paths on my local machine this means a 1s faster processing time. Considering that this function will be called a lot for every file operation this makes a noticeable difference.
Refer to this link for build results (access rights to CI server needed):