Re: [HACKERS] regex (from TODO) - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] regex (from TODO)
Date
Msg-id 200003081933.OAA04523@candle.pha.pa.us
Whole thread Raw
In response to regex (from TODO)  (Karel Zak - Zakkr <zakkr@zf.jcu.cz>)
List pgsql-hackers
> 
> 
>  In the PostgreSQL TODO is "Get faster regex() code from Henry Spencer..".
> 
>  I look at current available regex used (a example) in apache, php, .etc. But
> if I look at changes (via diff) between PostgreSQL's regex and more new
> regex in PHP4 it is very same. A differentions are that in new regex code
> are all values marks as 'register' and this new regex not support MULTIBYTE.
> It is without any relevant changes (or 'register' is really fastly?).
> 
>  What means TODO? 
> 
>  The PG's regex use malloc -- why not MemoryContext?

Henry has new code that is faster, and he has put it only in TCL so far.
I am waiting for a library version of it that we can include.

--  Bruce Momjian                        |  http://www.op.net/~candle 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: Tom Lane
Date:
Subject: Re: [HACKERS] alter_table.sql
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Regression test failure (runcheck)