Re: DataGrid Performance in Beta 2
- From: "sambarbas@xxxxxxxxx" <sambarbas@xxxxxxxxx>
- Date: 4 Aug 2005 06:25:10 -0700
help !!!!
sambarbas@xxxxxxxxx a écrit :
> 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: nobody
- Re: DataGrid Performance in Beta 2
- References:
- DataGrid Performance in Beta 2
- From: sambarbas@xxxxxxxxx
- DataGrid Performance in Beta 2
- Prev by Date: As Good Multithreaded Performance As You Can Get
- Next by Date: Re: As Good Multithreaded Performance As You Can Get
- Previous by thread: DataGrid Performance in Beta 2
- Next by thread: Re: DataGrid Performance in Beta 2
- Index(es):
Relevant Pages
|