Re: [POC] verifying UTF-8 using SIMD instructions

Поиск
Список
Период
Сортировка
От John Naylor
Тема Re: [POC] verifying UTF-8 using SIMD instructions
Дата
Msg-id CAFBsxsHWAy+GS39rEbsczLb-3H1=P_93urv-85K0R7dUQfajwQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [POC] verifying UTF-8 using SIMD instructions  (John Naylor <john.naylor@enterprisedb.com>)
Ответы Re: [POC] verifying UTF-8 using SIMD instructions  (Heikki Linnakangas <hlinnaka@iki.fi>)
Список pgsql-hackers
Here is a more polished version of the function pointer approach, now adapted to all multibyte encodings. Using the not-yet-committed tests from [1], I found a thinko bug that resulted in the test for nul bytes to not only be wrong, but probably also elided by the compiler. Doing it correctly is noticeably slower on pure ascii, but still several times faster than before, so the conclusions haven't changed any. I'll run full measurements later this week, but I'll share the patch now for review.

[1] https://www.postgresql.org/message-id/11d39e63-b80a-5f8d-8043-fff04201fadc@iki.fi

--
Вложения

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: jsonb_array_elements_recursive()
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [HACKERS] GSoC 2017: Foreign Key Arrays