jakarta-regexp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: Patch for Regexp
Date Wed, 17 Aug 2005 19:26:19 GMT
Jörgen Kosche wrote:
> Hello again
> 
> I forgot one thing in the last mail:
> In the program Performance.java reset the line:
> RE re = new RE("xyz", RE.MATCH_FROMBEGINNING);
> with:
> RE re = new RE("^xyz", RE.MATCH_SINGLELINE);
> 
> That should have the same effect, but the second variety is much
> slower, because it try to match on the whole string.

Jörgen,

1.4 release has optimization for "^xyz", try it out.

Regards,
Vadim

---------------------------------------------------------------------
To unsubscribe, e-mail: regexp-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: regexp-dev-help@jakarta.apache.org


Mime
View raw message