Re: [nhusers] Re: Faster Startup and better performance

2010-03-31 Thread Gustavo Ringel
In desktop apps i use to do the config during splash screen in a separate thread, in general i have 4/5 seconds until the user which just did double click ends writing his username and password, so i'm always faster than that... Gustavo. On Wed, Mar 31, 2010 at 1:27 PM, Visar Uruqi wrote: > I t

[nhusers] Re: Faster Startup and better performance

2010-03-31 Thread Visar Uruqi
I tried the serialization and deserialization and WOW it has shorten the startup a lot, By the way I'm developing a desktop application that's why the startup thing matters to me. How do you guys measure the duration of these operations in seconds and miliseconds, I'm curios to know, do you use an

Re: [nhusers] Re: Faster Startup and better performance

2010-03-30 Thread Fabio Maulo
Deserialization is faster FNH : 04.360 ConfORM : 00.958 (with hibernate.cfg.xml) Deserialization: 00.283 Time in second measured to have a full configured configuration ready to BuildSessionFactory 2010/3/30 Ajai Shankar > Out of curiosity, in the grand scheme of things what difference does >

Re: [nhusers] Re: Faster Startup and better performance

2010-03-30 Thread Ajai Shankar
Out of curiosity, in the grand scheme of things what difference does shaving maybe a couple of seconds? on startup make... Ajai On Tue, Mar 30, 2010 at 3:11 PM, Fabio Maulo wrote: > we are going to check how much faster is the configuration-deserialization > over add-Xml-Deserialized > > 2010/3

Re: [nhusers] Re: Faster Startup and better performance

2010-03-30 Thread Fabio Maulo
we are going to check how much faster is the configuration-deserialization over add-Xml-Deserialized 2010/3/30 Ricardo Peres > Visar, > > In order to fasten startup time, you can serialize the Configuration > object: > > Configuration cfg = new Configuration().Configure(); > IFormatter serialize

[nhusers] Re: Faster Startup and better performance

2010-03-30 Thread Ricardo Peres
Visar, In order to fasten startup time, you can serialize the Configuration object: Configuration cfg = new Configuration().Configure(); IFormatter serializer = new BinaryFormatter(); using (Stream stream = File.OpenWrite("Configuration.serialized")) { serializer.Serialize(stream, configurat