Bill Burke wrote:
> I created similar functionality of CGLIBs "fast reflection" for our AOP
> framework and it had an unnoticeable affect on the performance of the
> framework.  This was with Sun JDK 1.4.1_02 on Linux.  Considering that
> Hibernate's overhead is probably a lot higher, I don't think it will
> have any affect.

1.4 has pretty good reflection performance. I'm sure you'd see a difference
on 1.3, it is about 10x slower.

This new code in CGLIB isn't really new for Hibernate. It is just a
refactoring of the MetaClass "reflection optimizer" (which Hibernate
already uses) into a generic reflection package and a specialized BulkBean
class which optimizes data transfer to and from a bean. So there won't be
any performance impact here. The actual proxies will be faster, though,
once Hibernate switches to the new API.

Chris

p.s. the BulkBean class also now throws an exception detailing which
property failed, so you can print a better error message. 




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to