Good call on the AD reads.  The timings are much longer by my running this
over a VPN connection, but taking out the row operations has no effect on
the total runtime (99 seconds with the row operations, 102 seconds without
the row operations).

On Wed, 7 Jan 2004 10:11:58 -0500, Chad M. Gross <[EMAIL PROTECTED]>
wrote:

>As I stated in my previous post, it is most likely due to your AD reads
>for the first and last name causing the performance problem not adding the
>rows to the datatable.  For grins, if you run this code excluding the row
>operations, how long does it take?
>
>ArrayList userList = theDirectory.getUsers();
>
>if (userList != null)
>{
>  foreach (UserDirectoryObject user in userList)
>  {
>    // DataRow drUser = tblUsers.NewRow();
>    string lastName = user.lastName;
>    string firstName = user.firstName;
>    /* etc */
>    // tblUsers.Rows.Add(drUser);
>  }
>}
>
>
>Chad

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to