Uhg! Please don't If I go on using Hibernate for swing based apps that would mean that I'd have to modify each version you release. Please consider that developing an app requires restarting it over and over... if it's server side, you have to wait 20-30 seconds anyway for the app server to start and deploy the application, but if it's a swing app, the hibernate initialization dominates the application startup hands down. What do you think about: * defaulting to validation + exception (sound reasonable, if you want to validate then a validation error should be an exception); * having an option to disable it in the properties file, with statement in bold letters that developers won't accept if the xml has not been validated against the DTD? Maybe something not that much advertised in the docs?
Andrea ----- Original Message ----- From: "Gavin King" <[EMAIL PROTECTED]> To: "Andrea Aime" <[EMAIL PROTECTED]> Cc: "hibernate list" <[EMAIL PROTECTED]> Sent: Saturday, September 13, 2003 3:16 PM Subject: Re: [Hibernate] Reducing startup time (with a small solution) > Andrea, I was actually going to make the validation even > fussier, by throwing an exception when validation fails, instead of just > logging an ERROR. > > This is to avoid a particular large class of problems I see in the forum.... > > I'm a bit scared to let users turn off validation completely! I'm not sure > I can deal with all the extra traffic... > > Andrea Aime wrote: > > >Hi Gavin, hi everybody, > >it seems I've found a way to reduce even further the startup > >time of my application. Basically, I've changed the sax parser > >to the RealtimeParser included in Jade (jade.dautelle.com) and > >had to comment out the reader.setValidation(true); in the > >XMLHelper.CreateSaxReader(string) method. Further checks > >on my machine seems to suggest that avoiding validation > >takes down the startup time from 6.5 to 3.6 seconds, and > >using jade parser lowers it further to 2.6 seconds. Not bad :-), > >it would really nice if there was an option to avoid validation, > >I usually check xml validity with the IDE anyway (you don't > >need to check it again and again when you're in production, and > >morevoer a reduced startup time means more productive debugging ;-) > > > >Oh, PC is a Duron 1200, 512 MB RAM, Win2000, j2sdk1.4.2_01. > > > >Best regards > >Andrea Aime > > > > > > > >------------------------------------------------------- > >This sf.net email is sponsored by:ThinkGeek > >Welcome to geek heaven. > >http://thinkgeek.com/sf > >_______________________________________________ > >hibernate-devel mailing list > >[EMAIL PROTECTED] > >https://lists.sourceforge.net/lists/listinfo/hibernate-devel > > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > hibernate-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel