cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject RE: RE: [BUG]: Endless recursion in source resolving
Date Wed, 11 Jun 2003 08:21:08 GMT
Hi Volker,

On Tue, 2003-06-10 at 21:19, volker.schmitt@basf-it-services.com wrote:
> Hi,
> 
> additional comment about the performance.
> I have debuged the method parseURI with the following Argument:
> file:/C:/Data/Eclipse/workspace-lib/WorldAccount-webapp/tomcat/webapps/wa/
> I have append the Stackframe the regexp library need to resolve this
> regexp. You can see that are a lot of recursive funktion calls and there is
> a lot of code executed in each loop. I am a litle bit concerned about the
> performance, because resolving is really often called in Cocoon.
> Hmmmm,  "org.apache.regexp" library  is also used inside the Matcher, so I
> asked me if there are faster regexp libraries available. Whats about the
> ORO stuff? Are there some performance measurements available?

I don't know, I'll have to try it out.

> 
> It seams that we need to write our own handwritten parser for the URI
> stuff. What do you think?

Could well be. I used the regexp because it seemed like an elegant and
robust way to parse the URL, but I did not realise it would use such
deep call stacks (I did most of my testing with short URL's).

Anyway, I will look into improving it (but have some patience -- it will
likely not be before next week).

Thanks for spotting this!

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


Mime
View raw message