Maxim Dounin mdounin at
Wed Aug 13 04:05:53 MSD 2008


On Tue, Aug 12, 2008 at 03:35:40PM -0700, mike wrote:

>On 8/12/08, Maxim Dounin <mdounin at> wrote:


>> - Optimization is good, but only if doesn't change expected behaviour.
>How is this an optimization? If the first test fails, then check
>directory listing? Isn't it faster to take an enumerated list of
>parameters and check those first? You can test for a specific file, as
>opposed to opening a directory handle to check the listing or

It doesn't "check the listing".  It only checks existence of 
directory.  This saves some syscalls if directory doesn't exists 
and more than two index files configured.

Maxim Dounin

More information about the nginx mailing list