Re: Most efficient way to compare two arrays

2001-02-03 Thread Martin Cooper
> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 30, 2001 6:08 AM Subject: Most efficient way to compare two arrays > I have two arrays each having around 3000 elements. One array is a list of > file names from a database and the other is a list of files on a file > server. I would

Re: Most efficient way to compare two arrays

2001-01-30 Thread Tosa, Alex
OTECTED]] > Sent: Tuesday, January 30, 2001 7:06 AM > To: [EMAIL PROTECTED] > Subject: Re: Most efficient way to compare two arrays > > > Don't use arrays if performance is important for you. If > you're building a > professional application move your data in a

SV: Most efficient way to compare two arrays

2001-01-30 Thread Nicholas Larsson
run Thomas Skickat: den 30 januari 2001 18:03 Till: [EMAIL PROTECTED] Ämne: Re: Most efficient way to compare two arrays Is this really more efficient for the kind of query that is required here. Wouldn't the overhead of inserting all these rows into the database loose any advantage availabl

Re: Most efficient way to compare two arrays

2001-01-30 Thread Arun Thomas
ED]] > Sent: Tuesday, January 30, 2001 7:06 AM > To: [EMAIL PROTECTED] > Subject: Re: Most efficient way to compare two arrays > > > Don't use arrays if performance is important for you. If > you're building a > professional application move your data in a database and

Re: Most efficient way to compare two arrays

2001-01-30 Thread Tosa, Alex
D] Subject: Most efficient way to compare two arrays I have two arrays each having around 3000 elements. One array is a list of file names from a database and the other is a list of files on a file server. I would like to compare the two arrays and end up with two arrays showing what was in each

Re: Most efficient way to compare two arrays

2001-01-30 Thread Angus Mezick
Can you get them in order? If the arrays are in alpha order for example you can just go down both lists together ONCE ( O(n) I think ). I think it would be in your best interest to sort them first if you have to. Any ordering would do, as long as both lists are in the exact same order: list1 =

Most efficient way to compare two arrays

2001-01-30 Thread Nimmons, Buster
I have two arrays each having around 3000 elements. One array is a list of file names from a database and the other is a list of files on a file server. I would like to compare the two arrays and end up with two arrays showing what was in each array that was not in the other array. I am looking f