On 03.09.2021 at 16:07, Kevin Lyda wrote: > On Fri, Sep 3, 2021 at 2:34 PM Christian Schneider > <cschn...@cschneid.com> wrote: > >> If I remember correctly it was about reducing the number of system calls. Is >> this no issue any more? >> Has a quick benchmark been done to see the positive / negative impact of the >> stat cache for a typical application? > > In the lifespan of php it really wasn't an issue unless someone was > doing something that wasn't wise - I can't think of a single reason to > stat a file in a tight loop.
It seems to me a typical example where the stat cache is useful would be <?php if (is_file($filename) && is_readable($filename)) {…} ?> -- Christoph M. Becker -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php