Re: Unicode combining characters - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Unicode combining characters
Date
Msg-id 200110021755.f92HtlH19729@candle.pha.pa.us
Whole thread Raw
In response to Re: Unicode combining characters  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Unicode combining characters
List pgsql-hackers
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > If no one can find a case where multibyte is slower, I think we should
> > enable it by default.  Comments?
> 
> Well, he just did point out such a case:
> 
> >>              no MB        with MB
> >> LIKE      0.09 msec    0.08 msec
> >> REGEX    0.09 msec    0.10 msec
> 
> But I agree with your conclusion.  If the worst penalty we can find is
> that a regex comparison operator is 10% slower, we may as well turn it
> on by default.  Most people will never notice the difference, and anyone
> who really cares can always turn it off again.

But the strange thing is that LIKE is faster, perhaps meaning his
measurements can't even see the difference, or is it because the LIKE
optimization is off for multibyte.


--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: do we're in time to catch 7.2 Beta ?
Next
From: "Marc G. Fournier"
Date:
Subject: Re: do we're in time to catch 7.2 Beta ?