Re: A micro-optimisation for walkdir()

Поиск
Список
Период
Сортировка
От Juan José Santamaría Flecha
Тема Re: A micro-optimisation for walkdir()
Дата
Msg-id CAC+AXB3urjeAOEAaU6Fb0uQsDhMYzmQpELkO9tMVW_ixU56pAw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: A micro-optimisation for walkdir()  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: A micro-optimisation for walkdir()
Re: A micro-optimisation for walkdir()
Список pgsql-hackers


On Wed, Sep 2, 2020 at 4:35 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
Thomas Munro <thomas.munro@gmail.com> writes:
> You don't need to call stat() just to find out if a dirent is a file
> or directory, most of the time.  Please see attached.

Hm.  If we do this, I can see wanting to apply the knowledge in more
places than walkdir().

Win32 could also benefit from this micro-optimisation if we expanded the dirent port to include d_type. Please find attached a patch that does so.

Regards,

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

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

Предыдущее
От: Pavel Borisov
Дата:
Сообщение: Re: [PATCH] Covering SPGiST index
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: Group by reordering optimization