Re: CopyReadLineText optimization

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: CopyReadLineText optimization
Дата
Msg-id 47CEDC72.2050600@dunslane.net
обсуждение исходный текст
Ответ на Re: CopyReadLineText optimization  ("Heikki Linnakangas" <heikki@enterprisedb.com>)
Список pgsql-patches

Heikki Linnakangas wrote:
>
>
> So the overhead of using memchr slows us down if there's a lot of
> escape or quote characters. The breakeven point seems to be about 1 in
> 8 characters. I'm not sure if that's a good tradeoff or not...
>
>

How about we test the first buffer read in from the file and change
strategy accordingly?

cheers

andrew

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Endless recovery
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: TransactionIdIsInProgress() cache