Re: A micro-optimisation for walkdir()

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: A micro-optimisation for walkdir()
Дата
Msg-id 20200904215254.GA24145@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: A micro-optimisation for walkdir()  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 2020-Sep-04, Tom Lane wrote:

> I think that it's standard to test for such symbols by seeing
> if they're defined as macros ... not least because that's the *only*
> way to test their existence in C.

I guess since what we're doing is emulating standard readdir(), that
makes sense.

> Personally, what I'd do is lose the enum and just define the macros
> with simple integer constant values.

WFM.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: A micro-optimisation for walkdir()
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: A micro-optimisation for walkdir()