Re: Adding a way to disable the stat cache

From: Date: Fri, 03 Sep 2021 15:16:10 +0000
Subject: Re: Adding a way to disable the stat cache
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-115933@lists.php.net to get a copy of this message
On 03.09.2021 at 16:07, Kevin Lyda wrote: > On Fri, Sep 3, 2021 at 2:34 PM Christian Schneider > <cschneid@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

« previous php.internals (#115933) next »