Re: Unicode combining characters

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема Re: Unicode combining characters
Дата
Msg-id 20011003183001R.t-ishii@sra.co.jp
обсуждение исходный текст
Ответ на Re: Unicode combining characters  ("Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at>)
Ответы Re: Unicode combining characters  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Unicode combining characters  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Список pgsql-hackers
> I don't think your search string is sufficient for a test. 
> With 'aaa' it actually knows that it only needs to look at the 
> first three characters of a. Imho you need to try something 
> like liketest(a,'%aaa%').

Ok. I ran the modified test (now the iteration is reduced to 100000 in
liketest()). As you can see, there's huge difference. MB seems up to
~8 times slower:-< There seems some problems existing in the
implementation. Considering REGEX is not so slow, maybe we should
employ the same design as REGEX. i.e. using wide charcters, not
multibyte streams...

MB+LIKE
Total runtime: 1321.58 msec
Total runtime: 1718.03 msec
Total runtime: 2519.97 msec
Total runtime: 4187.05 msec
Total runtime: 7629.24 msec
Total runtime: 14456.45 msec
Total runtime: 17320.14 msec
Total runtime: 17323.65 msec
Total runtime: 17321.51 msec

noMB+LIKE
Total runtime: 964.90 msec
Total runtime: 993.09 msec
Total runtime: 1057.40 msec
Total runtime: 1192.68 msec
Total runtime: 1494.59 msec
Total runtime: 2078.75 msec
Total runtime: 2328.77 msec
Total runtime: 2326.38 msec
Total runtime: 2330.53 msec
--
Tatsuo Ishii


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

Предыдущее
От: Michael Meskes
Дата:
Сообщение: Re: My last ECPG commit
Следующее
От: Lee Kindness
Дата:
Сообщение: Re: Bulkloading using COPY - ignore duplicates?