Welcome! Log In Create A New Profile

Advanced

Re: location /

October 12, 2011 05:26AM
On Tue, Oct 11, 2011 at 02:18:02PM +0300, Gena Makhomed wrote:
> On 11.10.2011 12:53, Igor Sysoev wrote:
>
> >> "Files are processed in alphabetical order",
> >> в случае же nginx - ни в документации,
> >> ни в conf.d/README, ни в исходниках
> >> не написано, что включаемые файлы
> >> обрабатываются in alphabetical order.
>
> >> GLOB_NOSORT в исходниках nginx стоит ради производительности,
> >> потому что через include включаться могут и сотни тысяч файлов.
>
> > GLOB_NOSORT стоит не ради производтельности, а ради совместимости
> > с Windows. Там сейчас include делается через несортированный FindFirst/Next.
>
> ясно.
>
> только это совместимость с файловыми системами FAT12/FAT16/FAT32/exFAT,
> потому что если используется NTFS файлы выдаются в отсортированном виде:
>
> http://msdn.microsoft.com/en-us/library/windows/desktop/aa364428(v=vs.85).aspx
>
> ...
>
> The order in which the search returns the files, such as alphabetical
> order, is not guaranteed, and is dependent on the file system. If the
> data must be sorted, the application must do the ordering after
> obtaining all the results.
>
> ...
>
> The order in which this function returns the file names is dependent on
> the file system type. With the NTFS file system and CDFS file systems,
> the names are usually returned in alphabetical order. With FAT file
> systems, the names are usually returned in the order the files were
> written to the disk, which may or may not be in alphabetical order.
> However, as stated previously, these behaviors are not guaranteed.
>
> ...

Да, наверное, стоит убрать GLOB_NOSORT.


--
Igor Sysoev

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

location /

Gena Makhomed October 08, 2011 09:58AM

Re: location /

Михаил Монашёв October 08, 2011 10:24AM

Re: location /

Maxim Dounin October 08, 2011 05:10PM

Re: location /

Gena Makhomed October 09, 2011 07:16AM

Re: location /

Maxim Dounin October 09, 2011 04:20PM

Re: location /

Gena Makhomed October 10, 2011 08:32AM

Re: location /

Igor Sysoev October 11, 2011 05:54AM

Re: location /

Gena Makhomed October 11, 2011 07:20AM

Re: location /

Igor Sysoev October 12, 2011 05:26AM

Re: location /

Gena Makhomed October 11, 2011 07:48AM

Re: location /

Igor Sysoev October 12, 2011 06:14AM

Re: location /

Gena Makhomed October 18, 2011 02:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 152
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready