Re: Bug in UTF8-Validation Code?

Поиск
Список
Период
Сортировка
От Mark Dilger
Тема Re: Bug in UTF8-Validation Code?
Дата
Msg-id 46100A8A.5030006@markdilger.com
обсуждение исходный текст
Ответ на Re: Bug in UTF8-Validation Code?  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: Bug in UTF8-Validation Code?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Martijn van Oosterhout wrote:
> There's also the performance angle. The current mbverify is very
> inefficient for encodings like UTF-8. You might need to refactor a bit
> there...

There appears to be a lot of function call overhead in the current 
implementation.  In pg_verify_mbstr, the function pointer 
pg_wchar_table.mbverify is called for each multibyte character in a multibyte 
string.

Refactoring the way these table driven functions work would impact lots of other 
code.  Just grep for all files #including mb/pg_wchar.h for the list of them. 
The list includes interfaces/libpq, and I'm wondering if software that links 
against postgres might rely on these function prototypes?

mark


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Macros for typtype (was Re: Arrays of Complex Types)
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Implicit casts to text