in XmlSchemas.CreateXmlReaderSettings I changed the validation type to
none.

scott

On Aug 5, 1:18 pm, "Cesar Sanz" <[email protected]> wrote:
> hello @scot, how did you turn the XSD check off??
>
>
>
> ----- Original Message -----
> From: "srf" <[email protected]>
> To: "nhusers" <[email protected]>
> Sent: Wednesday, August 05, 2009 11:55 AM
> Subject: [nhusers] Re: xml configuration
>
> I see, I commented out the part that does the validation and its a lot
> faster now. Is there any way to make this configurable so that if I
> wanted it to validate it I would tell it to, otherwise it wouldnt
> validate it since in my tests it ends up validating the same xml
> thousands of times.
>
> thanks
>
> scott
>
> On Aug 5, 10:32 am, Fabio Maulo <[email protected]> wrote:
> > XSD check
>
> > 2009/8/5 srf <[email protected]>
>
> > > Im not sure if anyone else has noticed this but the
> > > Configuration.AddXml it quite a bit slower in nhibernate 2.1 compared
> > > to nhibernate 1.2 . In 1.2 we have 300 persistable classes so calling
> > > addxml to add all our xml files would take 2 seconds. In nhibernate
> > > 2.1 it now takes 9 seconds so it really killed our tests which used to
> > > take 700 seconds now take 1400 seconds because of this. Thankfully the
> > > configuration class is now serializable so I was able to serialize it
> > > but I now need to save this to disk so that all our tests can use it
> > > so its adding quite a bit of complexity to our tests. Profiling
> > > nhibernate I found that all the performance hit was coming from
> > > Configuration.LoadMappingDocument. Does anyone know what might have
> > > changed related to this that would have caused the performance hit ?
>
> > > thanks
>
> > > scott
>
> > --
> > Fabio Maulo- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to