Re: gzgetc() is hazardous to your health

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: gzgetc() is hazardous to your health
Дата
Msg-id 2264270.1760893036@sss.pgh.pa.us
обсуждение исходный текст
Ответ на gzgetc() is hazardous to your health  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I wrote:
> What I think we ought to do about this is get rid of our one usage
> of gzgetc(), replacing it with a one-byte gzread() operation.
> That's not lovely from a speed perspective, but I don't think that
> reading a pg_dump TOC file is really speed-critical.

In the light of morning I had a better, or at least easier, idea:
just #undef gzgetc and fall back on the underlying function.
That's at least a little faster than gzread(), too.

            regards, tom lane



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