The method with CreateNorthwindData is still there with large number
of lines. See the file

http://nhibernate.svn.sourceforge.net/viewvc/nhibernate/trunk/nhibernate/src/NHibernate.Test/Linq/NorthwindDbCreator.cs?view=log

The problem was solved for SQL Server generating an SQL script.

I note that the problem should be realated with JIT compiler, the dll
has Intermediate Language MSIL and only at runtime these thousands of
lines of MSIL are converted to machine language when the method
CreateNorthwindData is called and this process is consuming too much
resources.

Maybe it´s better solution to refactor the method CreateNorthwindData
making a simple loop to read the data from a file and do not use SQL
script that must be created for each database (SQL Server, SQLLite,
Oracle, ...).

On Jun 19, 4:44 am, Richard Brown <fluke...@googlemail.com> wrote:
> I think the new version of the LINQ tests does exactly that.
>
> Sent from my Android phone.
>
> On 19 Jun 2010 08:41, "Ricardo" <rs...@usa.com> wrote:
>
> I did not test the new version of Linq tests, but the function
> CreateNorthwindData with thousands lines of code seems to make visual
> studio crawl and consume great amount of memory just to enter the
> function. I spitted the function in many parts and the code run much
> faster, 5 times or more. I think you could remove the data from C#
> code and transfer to a xml file and read the data from a file.
>
> On Jun 18, 1:39 am, Fabio Maulo <fabioma...@gmail.com> wrote:
>
> > Hi all.
> > I have refactorized the t...
> > NUnit featurehttp://www.nunit.org/index.php?p=setupFixture&r=2.5.5
>
> > <http://www.nunit.org/index.php?p=setupFixture&r=2.5.5>With NUnit2.5+
> > testrunner the old tests...

Reply via email to