You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Ralph Goers <Ra...@dslextreme.com> on 2006/02/10 23:29:19 UTC

Re: regexp, Re: svn commit: r375161 - in /cocoon/branches/BRANCH_2_1_X:src/java/org/apache/cocoon/transformatio n/ src/jdk1.3/ src/jdk1.3/java/ src/jdk1.3/java/org/src/jdk1.3/java/org/apache/ src/jdk1.3/java/org/apache/cocoon/ src/jdk1.3/java/org/apache/cocoon/transf...

I was testing the login page of the portal on my 2.4GHz linux machine.  I
tested using JMeter with from 7 to 20 threads.  Before the change I was
able to get a throughput of about 3.9 requests/second.  After the change
it went to 5.4 requests/second.  The regexp is hardcoded in the
EncodeURLTransformer and did not change. The only change I made was to
replace RE with Pattern and the match call to match the JDK 1.4 syntax.

I ran a grep a while ago and found that there was one other place that
used Jakarta regexp. I think it was SourceUtil. I did not change that. 
Jakarta regexp is in the lib/endorsed directory.  I have no idea why.  I
presume some other package we are using requires it.

Ralph


Vadim Gritsenko said:
> rgoers@apache.org wrote:
>> Replace jakarta regexp with java.util.regexp on jdk 1.4 builds for
>> better reliability and improved performance.
>
> So question is, is it faster now? How much faster and on what regexp/data?
>
> Vadim
>


Re: regexp

Posted by Antonio Gallardo <ag...@agssa.net>.
Ralph Goers wrote:

> So once all references in our code are gone it can be removed?

Maybe not, ie xalan needs regexp. :-S

Best Regards,

Antonio Gallardo.

>
> Joerg Heinicke wrote:
>
>> On 10.02.2006 23:29, Ralph Goers wrote:
>>
>>> I ran a grep a while ago and found that there was one other place that
>>> used Jakarta regexp. I think it was SourceUtil. I did not change 
>>> that. Jakarta regexp is in the lib/endorsed directory.  I have no 
>>> idea why.  I
>>> presume some other package we are using requires it.
>>
>>
>>
>> It is in the endorsed dir because an older version of it comes with 
>> the newer Sun JDKs (I think 1.5 and later). So we have the same 
>> problem as with the XML libs.
>>
>> Jörg
>


Re: regexp

Posted by Ralph Goers <Ra...@dslextreme.com>.
So once all references in our code are gone it can be removed?

Joerg Heinicke wrote:

> On 10.02.2006 23:29, Ralph Goers wrote:
>
>> I ran a grep a while ago and found that there was one other place that
>> used Jakarta regexp. I think it was SourceUtil. I did not change 
>> that. Jakarta regexp is in the lib/endorsed directory.  I have no 
>> idea why.  I
>> presume some other package we are using requires it.
>
>
> It is in the endorsed dir because an older version of it comes with 
> the newer Sun JDKs (I think 1.5 and later). So we have the same 
> problem as with the XML libs.
>
> Jörg


Re: regexp

Posted by Joerg Heinicke <jo...@gmx.de>.
On 10.02.2006 23:29, Ralph Goers wrote:

> I ran a grep a while ago and found that there was one other place that
> used Jakarta regexp. I think it was SourceUtil. I did not change that. 
> Jakarta regexp is in the lib/endorsed directory.  I have no idea why.  I
> presume some other package we are using requires it.

It is in the endorsed dir because an older version of it comes with the 
newer Sun JDKs (I think 1.5 and later). So we have the same problem as 
with the XML libs.

Jörg