Peter Crowther wrote:
From: André Warnier [mailto:a...@ice-sa.com]
Peter Crowther wrote:
I'm also particularly amused by the topmost set of bars in
figure 2, given how proud the perl-ites are of their RE
library and performance ;-).
You didn't expect for a minute that this would remain
unanswered, did you ?
First, the perl-ites would answer that the comparison being
with PHP, it is of little relevance.

<sigh>.  Quite.  One of these days I'll learn to read... apologies.

Heh.  Yeah.  PHP's PCRE != Perl's RE.

More off topic: Perl's RE performance is usually not realized by
most Perl programmers because from what I've seen, most don't bother
to pre-compile their regular expressions.  I've seen RE intensive
Perl scripts achieve 20x speed-up simply by pre-compiling the regular
expressions with the qr// operator before applying them hundreds of
thousands of times on large data sets.

There's a reason I use Pattern.compile()/Pattern.matcher()/
Matcher.matches() etc. when String.matches() would have done the
job.

It might be interesting to do a speed comparison test between the
Perl, PHP/PCRE and Java RE libraries.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to