Hi all,

I have 512 on my machine at home 500Mhz and a 512 on my workstation at work
which is a 1.8Ghz machine.

Actually, the worst is the XML to Datagrid.  I would think this would be
pretty fast.

For example:

  Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
    Dim oAuthors As New Authors()
    Dim oDS As DataSet = oAuthors.FillGrid()
    With Me.DataGrid1
      .DataSource = oDS
      .DataMember = "authors"
    End With

  End Sub

  Public Function FillGrid() As DataSet
    Dim dsAuthors As New DataSet("authors")
    Dim filePath As String
    filePath = "C:\temp\xml\authors.xml"

    Dim fsReadXml As New System.IO.FileStream(filePath,
System.IO.FileMode.Open)
    ' Create an XmlTextReader to read the file.
    Dim xmlReader As New System.Xml.XmlTextReader(fsReadXml)

    dsAuthors.ReadXml(xmlReader)
    Return dsAuthors
  End Function


There is a significant pause at the XmlTextReader(fsReadXml) line above.
This is an xml file with about 10 simple records in it.

1. Shouldn't this be pretty quick?
2. Given the code above, is there something I'm doing which is imparing the
speed?


Thanks,



On Tue, 28 May 2002 10:40:12 -0700, Chris Sells <[EMAIL PROTECTED]>
wrote:

>I haven't noticed that WinForms apps are slow. How much memory have you got
>on your machine? I find 512 to be the minimum for a .NET dev machine.
>
>Chris
>----- Original Message -----
>From: "William Oliveri" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, May 28, 2002 9:15 AM
>Subject: [DOTNET] Windows Application painfully sluggish
>
>
>> Hi all,
>>   I have started to build a Windows application and in the process have
>> noticed that the response time is very sluggish(compared to an old VB6
>> app).  The app appears to draw on the screen in sections.  You can see
the
>> different parts coming up (especially in the 500Mhz machine, see below).
>>
>> I have tried this two ways on two different machines.
>> One 500Mhz and one 1.8Ghz.  Both are pretty close in results (by my eye).
>>
>> 1. I'm reading an xml file into a datagrid.
>> 2. I'm retrieving records from a SQL Server DB into a datagrid.
>>
>> The response for the SQL DB example is a lot faster than the xml but the
>> SQL is still not as responsive as a former VB6 app.
>>
>> I've tried this on two machines.
>>
>> I've read about a user acount needing to be there: ASPNET which it is.
>>
>> I mean, I only have a grid and a command button.  I hate to see a full
>> blown app.
>>
>> Is this a known issue?
>>
>> You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or
>> subscribe to other DevelopMentor lists at http://discuss.develop.com.
>>
>
>You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
>subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to