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, [EMAIL PROTECTED] (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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
--
Sergio Carvalho
---------------
[EMAIL PROTECTED]
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>