Max Rydahl Andersen wrote:
Hi all,
I've committed a version of Configuration (and it's friends) that makes it serializable.
Note: I've tagged V22branch with a BEFORE_SERIALIZABLE_CFG - just in case ;)
It is only serializable *before* the call to buildSessionFactory() because when that method is called the persisters are in play together with some id generators and other stuff that is quite non-serializable ;)
I've done some small tests and making configuration serializable has at least the same affect as just serializing the xml documents - so know it is
at least possible for our users to remove the configuration loading part from their "overhead".
We still have the building of sessionfactory that takes time - and it mainly is a matter of eager classloading and proxyfication via cglib.
This is rather clear as when you try to build a sessionfactory the second time the used time is minimal - like 0.5 seconds vs. 5.0 seconds.
And if that is the case it will be really hard to optimize it away since the classloading and proxification is required and non-serializable and thus non-avoidable....at least as things works and looks like now ;(
Still - any suggestions are welcome ;)
Best regards, Max
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel
-- Gavin King +61 410534454
Hibernate [EMAIL PROTECTED] http://hibernate.org
JBoss Inc [EMAIL PROTECTED] http://jboss.com
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel