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