NHibernate version: 1.0.2
Hi all,
we are using NHibernate and it works very fine. But the BuildSessionFactory() reading the mapping files from our 2 assemblies is taking 16 seconds. This is not an issue for our Web applications as it is happening only the first time! But we are now using the same framework for Winforms applications.
So 15 seconds can be a rather long time after the double click on an icon.
I then read the post in this formum regarding
Code:
NHibernate.Cfg.Environment.UseReflectionOptimizer = false;
This boosted performance to 3 seconds. But I can't now overridden properties can't be set anymore when loading inherited objects.
So is there any other way to speed up the initial configuration, e.g. by serialization ? Or is there a way to handle it, so that only the first start on local machine takes the whole time?
Thanks for help,
Dino[/code]