I agree that it's not really that slow, but it feels slow when the
application is a heavyweight client side app that people often open and
close all the time.  And the majority of the time is spent doing the cglib
stuff...  but now I have optimized hibernate to load in 5 seconds, but it's
still slow...  on our slow PII 233Mhz computers that this company refuses to
upgrade :-(  Can you believe half our users are still using Windows95?

-----Original Message-----
From: Chris Nokleberg [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 1:41 AM
To: [EMAIL PROTECTED]
Subject: [Hibernate] Re: Caching cglib generated runtime proxies?


Mao, Dean (IHG) wrote:
> I'm wondering if it's possible to do some generated-code at build time
> instead of generating the proxies at runtime.  I'm using hibernate for a
> swing application and the majority of the initialization time is taken up
> by hibernate's initialization of the configuration object.  (I've already
> sped up some of it using ideas from Andrea by using the Jade
> RealtimeParser and setting the xml validation to false) When I look at the
> profiler, it's always the same proxies that are being generated by cglib. 
> Is there some way to persist some proxies at build time so that startup 
> runtime time is shortened?

We are considering enabling this in the next version of CGLIB. You would
output the generated classes to .class files and include them in your
classpath. CGLIB would then look for the classes there before generating
new ones. But this is somewhat error prone and the class generation really
isn't that slow (unless something is wrong), so it may not be worth it.

Chris



-------------------------------------------------------
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


-------------------------------------------------------
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