You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Alexander Daniel <al...@gmx.at> on 2008/10/20 17:12:07 UTC

Component configuration: Spring vs. Avalon

In Cocoon 2.2 the file generator is defined directly as Spring  
component whereas the XSLT transformer is still defined in a xconf via  
the Avalon bridge. A definition via the Avalon bridge also creates a  
pool for the component visible as xsltPooled.

Does this have any performance reasons or are there any other reasons  
why the XSLT transformer is not defined as Spring component?

Thanks, Alex


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


Re: Component configuration: Spring vs. Avalon

Posted by Carsten Ziegeler <cz...@apache.org>.
Alexander Daniel wrote:
> In Cocoon 2.2 the file generator is defined directly as Spring component
> whereas the XSLT transformer is still defined in a xconf via the Avalon
> bridge. A definition via the Avalon bridge also creates a pool for the
> component visible as xsltPooled.
> 
> Does this have any performance reasons or are there any other reasons
> why the XSLT transformer is not defined as Spring component?
The reason is (I think) much simpler: noone ported the Avalon code so far.

Without measuring it, I think we can't really tell which approach is
faster. Java used to be slow when it comes to object creation and
deleting them, but that has changed. So today, pools are considered
slower. On the other hand, the xslt transformer is not just one simple
small java object, there is "a lot" going on when an instance is
created. But I guess if programmed correctly, the non-pool version
should be at least as fast as the pooled version if not faster.

HTH
Carsten
-- 
Carsten Ziegeler
cziegeler@apache.org

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