DataGrid Performance in Beta 2
- From: "sambarbas@xxxxxxxxx" <sambarbas@xxxxxxxxx>
- Date: 2 Aug 2005 09:05:05 -0700
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
.
- Follow-Ups:
- Re: DataGrid Performance in Beta 2
- From: sambarbas@xxxxxxxxx
- Re: DataGrid Performance in Beta 2
- Prev by Date: Re: NUMERICUPDOWN exception, please help!
- Next by Date: Why would .NET code run slower on a 3GHz Xeon box versus a 1.2Ghz
- Previous by thread: Re: NUMERICUPDOWN exception, please help!
- Next by thread: Re: DataGrid Performance in Beta 2
- Index(es):
Relevant Pages
|
Loading