excalibur-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: [RT] About proxies and pooling
Date Fri, 25 Jun 2004 07:59:37 GMT
Shash Chatterjee wrote:
> Carsten,
> > I think we should always create a proxy.
> > WDYT?
> > 
> A while back I did a performance comparison of Fortress with 
> and without proxies  (and posted it to the Avalon dev list, I 
> believe).  Although the component lookup time difference, 
> with and without the overhead of proxy creation, wasn't 
> significant, the method invocation time with proxies was an 
> order of magnitude higher.  For applications that only lookup 
> the component once, or rarely, but make many method calls on 
> the component (possibly iterating in a loop), the overhead 
> can quickly add up. 

> I think the safety of not being able to cast a component 
> willy-nilly is a great advantage during development.  But, a 
> choice of whether to have proxies at run-time or not is 
> valuable for performance reasons. 

> On a related issue, I have found that the choice betwen 
> java.lang.Proxy proxies and BCEL proxies are important.  A 
> lot of people dislike byte-code-modified classes, all though 
> that argument might be deemed bordering somewhere between 
> technical and religious.
Hmm, just curious. If we would create BCEL proxies wouldn't
the performance problem go away?


To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org
For additional commands, e-mail: dev-help@excalibur.apache.org
Apache Excalibur Project -- URL: http://excalibur.apache.org/

View raw message