Good morning, On Sat, Sep 4, 2021 at 4:51 AM Hans Henrik Bergan <divinit...@gmail.com> wrote: > > PS i've seen *HORRIBLE* fs performance for php-running-on-windows, > where the same filesystem operations on the same files took like 5 seconds > on linux-running-on-vmware-on-laptop-running-windows-10, versus several > minutes for the same operation on the same laptop on windows 10 directly.. > for people looking for best-case-scenario for the stat cache, try looking > at windows fs performance.. (if anyone even cares about that? i personally > don't, i never run anything performance-sensitive-php code on Windows, just > noticed horrible fs performance in the past)
Windows TS is as far as I remember the main reason for stat cache being there as well. Not necessarily because stats are slower on windows but because a userland stat causes multiple system stat (virtual cwd and related does multiple calls ). It was and most likely still is a performance hit back then. As for the option to disable stat cache, I don't see how it can hurt, as long as it is well documented and off by default. So daemon and similar apps can disable it if desired. Other apps, I honestly do not see any gain :). Best, -- Pierre @pierrejoye | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php