When running my xDebug profiler on the code from my project I noticed that counting the number of files took 49.2% of the total time of the request in my test environment. While a huge optimization would take quite a lot of time there was a way to make the request double as fast by only hiding the file count per directory which might also pass as a nice feature to have a cleaner interface.
When running my xDebug profiler on the code from my project I noticed that counting the number of files took 49.2% of the total time of the request in my test environment. While a huge optimization would take quite a lot of time there was a way to make the request double as fast by only hiding the file count per directory which might also pass as a nice feature to have a cleaner interface.