cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: [C2] Running JMeter on Cocoon Samples
Date Wed, 14 Feb 2001 22:51:40 GMT
Berin Loritsch wrote:
> Paul Russell wrote:
> > * Berin Loritsch (bloritsch@apache.org) wrote :
> > > I discovered something incredible.  The XSP system is our major
> > > performance sink-hole.  This I find to be amazing.
> > >
> > > I have my suspiscions as to where the problems may lie: Class
> > > validation (is it current?) and sending too many namespace events.  I
> > > am going to try running reading a normal file through the
> > > LogTransformer, and then an XSP file through the same LogTransformer.
> > > I have a feeling that those two areas are are major performance
> > > bottlenecks.
> >
> > Interestingly, we discovered something similar a long time ago in
> > Luminas. Probably because we are *very* heavy on namespaces (a lot of
> > our pages have 10-15 namespaces floating around in them). The current
> > XSP implementation does an awful lot of prefix mapping changes. In fact,
> > we discovered that in a number of instances, _over half_ of the
> > generated code was concerned with adding and removing prefix mappings.
> > This is clearly not sensible. I'm not yet sure how to avoid this - I
> > think we may have to use extension functions to keep track of which
> > namespaces we've already defined.
>
> I just noticed that the ServerPagesGenerator caches the SAX results with
> a Stack.  Is this really necessary?  If an exception occurs, we should
> just throw a SAXException or ProcessingException like the rest of the
> system.

I have talked about that with Ricardo at ApacheCon and IIRC it has to do with 
easy programming practice where XSP programmers might want to use a return 
statement to end the page (even in the middle of nested elements). 

Giacomo

Mime
View raw message