Carsten is right. In Main.java the flow is organised as follows:
1. getContentType
2. getLinks (which uses this content-type as a parameter)
3. getFile (which uses the links as a parameter)
which makes three passes in total.
I'm not very familiar with the internals of this part of Cocoon, but maybe
it is possible to
1. combine the two environments into one and get all the information at
once
2. removing the content-type dependency from the links-environment
K.
Stephan Michels wrote:
>
> On Fri, 24 May 2002, Carsten Ziegeler wrote:
>
> > The commandline interface is currently very inefficient. Each document
> > is even without caching, precompilation etc. at least build twice.
> > The first time to get the content and the second time to get the
> > mime-type of the document!
>
> Mime type? Do you not mean for links-view?
>
No, mime type is correct!
For whatever reason the command line interface builds the document again
to get the mime type! I don't know why, but it's the way it is now.
If the crawling mechanism is used, then the document is processed three
times, the third time for the links-view.
Carsten
Carsten Ziegeler Chief Architect Open Source Group, S&N AG
------------------------------------------------------------------
Cocoon Consulting, Training and Projects
------------------------------------------------------------------
mailto:[EMAIL PROTECTED] http://www.s-und-n.de
http://ziegeler.bei.t-online.de
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]