Re: speed up verifying UTF-8

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: speed up verifying UTF-8
Дата
Msg-id CAM-w4HMTHARzthg-3j1GnXUFTer0mLVXt8voPbA+iF68OSvHTg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: speed up verifying UTF-8  (Greg Stark <stark@mit.edu>)
Ответы Re: speed up verifying UTF-8  (John Naylor <john.naylor@enterprisedb.com>)
Список pgsql-hackers
I haven't looked at the surrounding code. Are we processing all the
COPY data in one long stream or processing each field individually? If
we're processing much more than 128 bits and happy to detect NUL
errors only at the end after wasting some work then you could hoist
that has_zero check entirely out of the loop (removing the branch
though it's probably a correctly predicted branch anyways).

Do something like:

zero_accumulator = zero_accumulator & next_chunk

in the loop and then only at the very end check for zeros in that.



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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: speed up verifying UTF-8
Следующее
От: Nitin Jadhav
Дата:
Сообщение: Re: Multi-Column List Partitioning