Hello,
As Spring documentation states "Spring defaults to using J2SE dynamic proxies for AOP proxies". The other alternative is to use CGLIB proxies.
However I'm a bit worried about first approach when is uses Dynamic Proxies. A method invocation through proxy seems to be about 98% slower that invoking the method directly (...which probably is expectable). However it seems to be 8 times slower than invoking it reflectivley using Method class.
Theses time diffrences were observed in nanoseconds (for a dummy getter method that just returns a reference).
Has anyone observed any significant perfomance decrease when using dynamic proxies in production ?
Thanks,
Marius


Reply With Quote