By default, NHibernate compiles the mappings when creating the SessionFactory…
Is it possible to configure NHibernate so that it compiles the needed mappings “on the go”? So that it only compiles a mapping when it needs it?
The reason I’m asking is to work around the lenghty operation on start-up (of a winforms, well, AutoCAD application…)
Not possible. A good way to speed up session factory creation is serializing/deserializing the configuration object to a file.
Here are some more ideas to speed this up (or at least reduce the perceived startup time)