hibernate.use_reflection_optimizer is one of those evil "system-level" properties in Hibernate ... it MUST be specified in hibernate.properties or with java -D.
(I hate this.)
Mao, Dean (IHG) wrote:
Hmm, I must be doing something wrong... on my P4 1.7Ghz, I'm around 12 seconds for load time. I tried setting the use_reflection_optimizer property, but it doesn't seem to gain me any speed improvements. The majority of the time is still spent in net.sf.hibernate.util.ReflectHelper.getMetaClass (which calls the cglib.MetaClass.getInstance)
I'm using around 25 something classes, 10 classes less than you, yet 4 fold slower! I'm limited by what jvm settings I can do though, since this will eventually go into an applet type application and be used by management type people... :-/
-----Original Message----- From: Andrea Aime [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2003 3:44 AM To: Mao, Dean (IHG) Cc: '[EMAIL PROTECTED]' Subject: Re: [Hibernate] Caching cglib generated runtime proxies?
Mao, Dean (IHG) wrote:
35 classes in 2.5 seconds? I don't believe you!Are you always so polite with people trying to help you? ;-)
Add the following line in the hibernate.properties file:I have optimized the logging too. How are you getting around the cglib initialization? The majority of my hibernate initialization time is consumed by the cglib creating all its proxy classes.
hibernate.cglib.use_reflection_optimizer false
Just for the record, on my new AthlonXP 2800+ the hibernate initialization is performed in 0.8 seconds.
But I'd like it to take less, no everyone has a Ghz machine these days, and it can take as much as 5
seconds on a 500/700 Mhz PC (still quite common in many offices around here).
Best regards Andrea Aime
-------------------------------------------------------
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