Filip Defoort wrote:
Hi,

This may have been covered before, but one of the guys working on the fortress port
of our stuff just pointed out to me how bad reflection/the proxy objects actually are for performance..
With proxy objects, we're pretty much loosing a *factor* of 5-10 in performance (for each
method call on a component)...


I've disabled proxies by using following container:

public class NoProxyContainer extends DefaultContainer {
protected ObjectFactory createObjectFactory( final String classname,
final Configuration configuration ) throws ClassNotFoundException {


final Class clazz = m_classLoader.loadClass( classname );
final ComponentFactory componentFactory = new ComponentFactory( clazz, configuration,
m_serviceManager, m_context, m_loggerManager, m_extManager );
return componentFactory;
}
}
[running a single dummy method on a component in this container vs. the same
component in the DefaultContainer yields a 5-10 times increase in performance].


What version of JDK are you using?



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to