Re: A micro-optimisation for walkdir()

Поиск
Список
Период
Сортировка
От Juan José Santamaría Flecha
Тема Re: A micro-optimisation for walkdir()
Дата
Msg-id CAC+AXB12ukw-D22CcYC4F+=pRqgvcLgh5x2Wa07UaUaD+Q0vWA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: A micro-optimisation for walkdir()  (Andres Freund <andres@anarazel.de>)
Ответы Re: A micro-optimisation for walkdir()
Список pgsql-hackers

On Sat, Sep 5, 2020 at 2:13 AM Andres Freund <andres@anarazel.de> wrote:

> However, it looks like we might be missing a further opportunity
> here...  Doesn't Windows already give us the flags we need in the
> dwFileAttributes member of the WIN32_FIND_DATA object that the
> Find{First,Next}File() functions populate?

That'd be better...

At first I did not see how to get DT_LNK directly, but it is possible without additional calls, so please find attached a version with that logic.

This version also drops the enum, defining just the macros.

Regards,

Juan José Santamaría Flecha  
Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Ranier Vilela
Дата:
Сообщение: Re: [PATCH] Redudant initilization
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH] Redudant initilization