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