Re: [Monetdb-developers] [Monetdb-checkins] MonetDB5/src/modules/mal pcre.mx, , 1.86, 1.87

On Sat, Aug 01, 2009 at 03:45:42PM +0000, Fabian wrote:
Once / in case that turns[C out to be(come) a performance bottleneck, we could probably add a BAT(u)iselect (for string-tailed BATs, only) that is based on strcasecmp(3) with not too much efford ... Stefan
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4312 |

On 01-08-2009 17:56:06 +0200, Stefan Manegold wrote:
True, I don't expect it to be a very complicated task to achieve either. The only case for which we now do PCRE matching instead of BAT*select now is the case where you do this: SELECT col FROM table WHERE col ILIKE 'myStrInG';

On Sat, Aug 01, 2009 at 07:13:18PM +0200, Stefan de Konink wrote:
as much or little as srcmp(3), I suppose, which we use for normal BAT(u)select, and hence for non-LIKE string predicates (i.e., normal equality and inequality) Stefan
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4312 |

Op 2 aug 2009 om 01:01 heeft Stefan Manegold <Stefan.Manegold@cwi.nl> het volgende geschreven:\
Ok, the alternative I suggested to Fabian was to use our lookup table if a char doesnt matches. The minor detail there is endianess. PCRE might be faster anyway, strcasencmp the n is for only one char; trivial to test I guess.
Stefan
participants (3)
-
Fabian Groffen
-
Stefan de Konink
-
Stefan Manegold