I did some superficial tests under JDK1.4. With invocation handling that just delegates to the actual implementation, it seems that CG is slower than Proxies initially. But after several thousand invocations CG gets substantially (20+%) faster than Proxies. My theory is that CG somehow benefits more from hot spot compilation. I might be missing something, so if you want to see my tests I'll send it to the list.
P.S. sorry for barging in on the list like this. I only realised it is actually the devel list after it was too late. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Gavin King Sent: 22 October 2002 06:41 To: Viktor Szathmary Cc: [EMAIL PROTECTED] Subject: Re: [Hibernate] Ohhh this looks cool > i think the difference would be marginal, as dynamic proxies also use > class generation behind the scenes... I have a suspicion it will be slightly slower with CGLIB, actually. ------------------------------------------------------- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576301;v? http://www.sun.com/javavote _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel ------------------------------------------------------- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576301;v? http://www.sun.com/javavote _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel