cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergio Carvalho <sergio.carva...@acm.org>
Subject Re: C1 vs C2 - Speed and Stability
Date Mon, 06 Aug 2001 18:57:09 GMT

C2 may provide large advantages when processing large files - depending on what 
you do with the data. C1 uses DOM for handling the XML files, which requires the 
construction of the entire document model in each stage. C2 uses SAX, which is 
event based, and allows for the XML data input to be treated as a piped stream.
In C2, all stages of processing may work at the same time on the data, without 
ever creating a complete model of the source in memory, and additionally producing 
some results before processing is complete (as the stream starts falling off the 
end of the pipeline).

Obviously, not all operations fit the stream model. One obvious example is 
sorting, at any given stage, which forces a stall in the pipeline until all data
is received. 

C2's API has stabilized, so you may want to start porting efforts. Start with a 
proof-of-concept, to measure performance increase and decide from that. C2 has
definitely passed the point where it is worth the evaluation effort. 


On Mon, 06 Aug 2001 14:12:35 -0400, rajkumar@orionsci.com (Rajkumar, Joseph) wrote:
--
> Hi Folks
> 
>     I have Apache-1.3.20+Tomcat-3.2.2+Cocoon-1.8.2 running
> in a production system.
> 
>    I do realise that Cocoon-1 is not in development any more and
> that Cocoon2-Beta2 is available.
> 
>    I do run across xml files that take quite a while to display ie in
> the order of 1 to 2 minutes. These are large xml files though.
> 
>    My question is: Will I be able to realise any significant performance
> 
> improvements if I switch from C1 to C2 using the same Apache+Tomcat
> (3.2.2 or 3.2.3).
> 
>    We are a little concerned about shipping Cocoon2-beta2 but I would
> not
> mind if there is significant performance increases.
> 
>    Any opinions and thoughts on why I should switch over to Cocoon2 or
> why I should wait for a final release of Cocoon2 would be greatly
> appreciated.
> 
> Regards
> Joseph Rajkumar
> 
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 



--
Sergio Carvalho
---------------
sergio.carvalho@acm.org

If at first you don't succeed, skydiving is not for you

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message