On 22 December 2024 20:32:47 GMT, Niels Dossche <dossche.ni...@gmail.com> wrote:
>All in all though, I'm not convinced by the parameter approach.
>I'd like a proper solution rather than some plaster.
>There are some options:
>1) Try to fix the stat cache.
>2) Put stat cache behind an ini knob.
>3) Get rid of the stat cache.
>
>All of these simplify the developer experience. Adding more configuration 
>knobs or extra parameters add complexity.
>I'd like to see more simplification.


I disagree that number 2 simplifies anything. Users who get tripped up by the 
subtle behaviour of the cache won't know to turn it off; users who know they 
can get advantage from it will have to make sure it is turned on, and not 
conflicting with code that wants it turned off; and libraries will have to 
account for both modes, or add boilerplate.

I would probably vote for abolishing it completely, or replacing it with some 
form of *local* setting (maybe *only* on SplFileInfo). I would probably vote 
against adding an ini setting.

Regards,
Rowan Tommins
[IMSoP]

Reply via email to