With a complex objects list this is difficult.
I would suggest doing it server side.

If the lists contained numerical or string items you could rely on sorting to make your iteration process shorter.


Bjorn


On 17/05/2007, at 4:36 AM, Nate Pearson wrote:

What's the best practice when you have to compare two large lists? My
main list is 9000 objects long. I have to compare this to another
list which might have 4000 objects in it.

Right now I'm doing it the WRONG way. For each row in the Main list i
iterate through every item in the 4000 objects. As soon as I hit a
match I return a true and that exits the iteration. This is still a
very slow process.

Both lists are dynamic.

Any ideas on the right way to do this?

Thanks,

Nate





Reply via email to