DataGrid Performance in Beta 2



Hi,

I've noticed a big performance difference between 1.1 and beta 2.0 when
binding a datasource with a datagrid.

try this code on the 2 frameworks (a simple winform)

private void Form1_Load(object sender, EventArgs e)
{
DataSet ds = new DataSet();

int debut = 0;

debut = Environment.TickCount;
ds.ReadXmlSchema(@"D:\clients.xsd");
ds.ReadXml(@"D:\clients100000.xml");
Debug.WriteLine("XML = " + (Environment.TickCount - debut));

debut = Environment.TickCount;

dataGridView1.DataSource = ds.Tables[0];

int dureeAff = (Environment.TickCount - debut);
Debug.WriteLine("DataGrid : " + dureeAff);
MessageBox.Show("DataGrid : " + dureeAff);
}

My XML file contains 100000 records.

2.0 is better in parsing XML (4 sec against 14 sec on 1.1)
2.0 is very bad when binding datagrid (10 sec against 0.6 sec on 1.1)

i knew that xml parsing was optimized in latest version, but why
databinding is so long ??????

will it be fixed in final ?

bye

.



Relevant Pages

  • Showing only first part of the field in datagrid
    ... I have a XML file as datasource, and I bind it to datagrid. ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • Problem mit NavigateUrl
    ... Ich habe ein DataGrid und binde daran ein Xml File. ... Navigation. ... Ich benutze für meine Seite übrigens MasterPages ...
    (microsoft.public.de.german.entwickler.dotnet.asp)
  • Re: datagrid update command
    ... > -i updated the dataset with the str and i wrote the dataset to xml file ... > -i used the debugger to watch str and the same result here ... i have to update the datasource with the dataset every time i need ...
    (microsoft.public.dotnet.framework.aspnet)
  • VB.net Form to Read and Update XML
    ... the DataGrid). ... Dim xdd As XmlDataDocument ... MessageBox.Show("The XML file has been successfully updated!") ...
    (microsoft.public.dotnet.xml)
  • Re: continuously running thread?
    ... and continuously running threads aren't ... This will fire a method at a timed interval on a> threadpool thread and this method can check the XML file. ... > will perform the datagrid refresh. ... > Best Regards ...
    (microsoft.public.dotnet.languages.csharp)

Loading