in TC the difference is: was 06:40 is 03:40 in my PC around the same; half time.
Ricardo, Do you really think that to read data from file and then write data using NH is the better we can do ? Are you really using NH to upload such amount of data to a cleaned DB ? How many times you are running NH tests ? before each commit to our repository ? On Sun, Jun 20, 2010 at 9:05 PM, Ricardo <[email protected]> wrote: > 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 <[email protected]> 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" <[email protected]> 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 <[email protected]> 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... > -- Fabio Maulo
