|
From: Chris N. <ch...@si...> - 2003-11-28 20:19:42
|
Rod Johnson wrote: > I considered the bean copy route, but the object I was using in my > application was actually Type 3 and we must now consider that as well. > Also, there may not be getter methods on the source: only setters. That makes sense. > Interestingly, CGLIB 1.0 performance vs DP performance seems pretty much > the same otherwise. For JDK 1.4 it is probably in the same ballpark. The two biggest costs are argument array creation and the reflective method call. The former is required for both DPs and CGLIB, and the latter is implemented using code generation in 1.4 anyway. I'm sure there is a bigger difference for 1.3, and of course with DP you can not extend a class. Chris |