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 slo
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
There is system property in cglib "cglib.debugLocation" , if you will set it
cglib will dump classes to this directory, but you will need to modify
hibernate or cglib factories to use "Class.forName".
- Original Message -
From: "Mao, Dean (IHG)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
I figured out my problem I have been using
hibernate.use_reflection_optimizer all this time, only to find out that the
actual property to be set should be
hibernate.cglib.use_reflection_optimizer. Didn't realize it until I printed
out all the properties. Now my buildSessionFactory() time is
- Original Message -
From: "Mao, Dean (IHG)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 29, 2003 8:44 AM
Subject: RE: [Hibernate] Caching cglib generated runtime proxies?
> How would I turn on debug for cglib? looking at the api, it seems like
the
> method for s
Laurent,
With regards to the LEFT JOIN clauses, I've always used mapped Set objects
(many-to-one,one-to-many) and then interated the resulting Java Set object
to return only the objects that I need. I'm sure there's a more efficient
way to do this though, and I'd love to hear what you find out
How would I turn on debug for cglib? looking at the api, it seems like the
method for setDebug can't be accessed outside the package. Is there
something in addition I would have to do to get the class files to be dumped
to the directory? Right now, setting the cglib.debugLocation property
doesn'
meaning... you can't set this attribute in the Configuration.setProperty()?
-Original Message-
From: Gavin King [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 5:37 AM
To: Mao, Dean (IHG)
Cc: 'Andrea Aime'; '[EMAIL PROTECTED]'
Subject: Re: [Hibernate] Caching cglib generated ru
Hi,
I would like to have
the query Hibernate of this query sql :
select document.pbl_id from pbl_version_doc
documentleft join reponse on reponse.VPr_ID = document.VPr_IDleft join
reponse_pbl_sit on (reponse_pbl_sit.rps_id = reponse.rps_id and
reponse_pbl_sit.vst_id <> '472a03cb4971e3
so how are you guys bypassing the whole cglib stuff? is it just with that
tiny hibernate.use_reflection_optimizer property? According to my profiler,
more than 60% of Hibernate's startup time is spent creating all the meta
classes for cglib.
-Original Message-
From: Christian Bauer [mai
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
On 29 Sep (03:17), Mao, Dean (IHG) wrote:
> for a startup time of 2.5 seconds, how many persisted classes are you using
> with hibernate?
I'm having 50, ca. 2 seconds, Pentium M 1.6 Ghz.
--
Christian Bauer
[EMAIL PROTECTED]
---
This sf.net e
for a startup time of 2.5 seconds, how many persisted classes are you using
with hibernate?
-Original Message-
From: Andrea Aime [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 3:15 AM
To: Mao, Dean (IHG)
Cc: '[EMAIL PROTECTED]'
Subject: Re: [Hibernate] Caching cglib generated
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
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? ;-)
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 cgli
35 classes in 2.5 seconds? I don't believe you! 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.
-Original Message-
From: Andrea Aime [mailto
Mao, Dean (IHG) wrote:
for a startup time of 2.5 seconds, how many persisted classes are you using
with hibernate?
35 classes. Oh, also disabling the logging provides a good improvement:
LogManager manager = LogManager.getLogManager();
manager.reset();
This is a bit crude, better modify the lo
Mao, Dean (IHG) wrote:
Hi All,
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 configurati
Mao, Dean (IHG) wrote:
Hi Andrea,
I see in the hibernate-devel lists that you manage to reduce the hibernate
startup times? I too develop with hibernate in swing based applications so
it would be really cool to have a faster startup time. Do you know what
modifications are necessary to the hibe
19 matches
Mail list logo