having a problem. Efficiency. I know very little about efficiency in coding, but I'm learning. Searching through these arraylists of strings for item1 and when found adding item2 to a new arrayList. The logic is great. Works fine. But takes about 30-40 seconds as there are 700 elements in arrLoList * 10 000 elements in arrCoList.
Now contains drops out as soon as it finds the item1, so I can't really improve on that. Would it help at all to cut some characters off the end of the arrCoList's strings?
How else could I improve this? I think changing from arrayLists?
For Each item1 In arrLoList
For Each item2 In arrCoList
If arrCoList.contains(item1) Then
arrNewList.Add(item2)
Else
intCouldntfind += 1 'not finding 7 million
End If