Re: [pcre-dev] pcre_dfa_exec optimization

Kezdőlap
Üzenet törlése
Szerző: Philip Hazel
Dátum:  
Címzett: Ronen Hod
CC: pcre-dev@exim.org
Tárgy: Re: [pcre-dev] pcre_dfa_exec optimization
On Mon, 3 Aug 2009, Ronen Hod wrote:

> I encountered serious performance issues so I had to do a quick fix
> for my needs. It is not thread-safe, it has assumptions regarding the
> number of states (which are sufficient for me), and I am not 100% sure
> that I understand all the implications (maybe it can be optimized
> further). My application as a whole runs 4x faster now, and I assume
> that pcre_dfa_exec() is ~10x faster on my data. Attached is the code
> with the changes. Enable/Disable them using: "#define
> CRESCENDO_CHECK_FOR_DUPLICATES".


Thanks for submitting your code. I will study it when I next work on
PCRE (hopefully, in a few weeks' time).

Philip

--
Philip Hazel