Re: [ADVANCED-DOTNET] Fastest way to add contents of ArrayList to a DataTable

2004-01-08 Thread Scott A. Lawrence
that none of the values are being used.) > >If it's accessing the userList info that takes the time, it's someone else's code that needs to run faster, not yours. Good luck. > >At 02:08 PM 1/6/2004, Scott A. Lawrence wrote >>I'm writing a user profile tool that

Re: [ADVANCED-DOTNET] Fastest way to add contents of ArrayList to a DataTable

2004-01-07 Thread Scott A. Lawrence
though. The MarshalByRefObject question is a good one. I'll need to run the code again to see if I can come up with an answer. On Wed, 7 Jan 2004 10:56:56 -0500, Michael J. Carter <[EMAIL PROTECTED]> wrote: >On Wed, 7 Jan, 2004 09:21 -0500, Scott A. Lawrence <[EMAIL PROTECTED]>

Re: [ADVANCED-DOTNET] Fastest way to add contents of ArrayList to a DataTable

2004-01-07 Thread Scott A. Lawrence
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 <[EM

Re: [ADVANCED-DOTNET] Fastest way to add contents of ArrayList to a DataTable

2004-01-07 Thread Scott A. Lawrence
Interesting idea on returning an array of UserDirectoryObject. I know you can bind an array to a DataGrid. I know what classes need to be implemented in order to enable sorting on an array of UserDirectoryObject. What I'm not sure of is how I would replicate the row filtering functionality you g

Re: [ADVANCED-DOTNET] Fastest way to add contents of ArrayList to a DataTable

2004-01-07 Thread Scott A. Lawrence
Very interesting idea, Mark. One thing I'm not sure of is how I would replicate the row filtering functionality you get automatically with DataView. On Tue, 6 Jan 2004 16:19:28 -0600, Marc Brooks <[EMAIL PROTECTED]> wrote: >You could just make your list actually expose the needed interfaces for

Re: [ADVANCED-DOTNET] Fastest way to add contents of ArrayList to a DataTable

2004-01-07 Thread Scott A. Lawrence
I used the tracing functionality built into ASP.NET. The process of populating the DataTable with the contents of the ArrayList is what is taking up the majority of the time. On Wed, 7 Jan 2004 01:18:06 GMT, Erick Sgarbi <[EMAIL PROTECTED]> wrote: >Have you tried to use CLRProfiler to find out w

Re: [ADVANCED-DOTNET] Fastest way to add contents of ArrayList to a DataTable

2004-01-06 Thread Scott A. Lawrence
In order for ArrayList sort to work properly, I think I would need to implement IComparable and a specialized IComparer class. I would also have to come up with a way to implement row filtering for the array list. Since this functionality is easy to access via the DataView, once the initial penal

[ADVANCED-DOTNET] Fastest way to add contents of ArrayList to a DataTable

2004-01-06 Thread Scott A. Lawrence
I'm writing a user profile tool that manipulates information in an LDAP server. I'm using an abstraction layer that talks directly to the server (written by another developer). The function of the abstraction layer that returns a list of all the users in LDAP returns an ArrayList. For easier fil