I get an issue in my Github, something about the optimization of a procedure and how it accesses the database.
In PHP, apparently, the method file_exists() (it finds if a file exists) is slower than the method is_file() (it returns true if a path is a file), so I decided to do a benchmark:
100k interactions, smaller is better
|3.451578140258789 (sec)||2.0834150314331055 (sec)|
And yes, is_file() is faster.
And I did the same in my Linux box and it is the result:
It is not a small difference but a big difference. Linux is around 20x faster than Windows accessing the files.
So Windows Server is not only slower but also it is expensive.