What is fastest way to find number of matches between arrays?
- by John Sheares
Currently, I am testing every integer element against each other to find which ones match. The arrays do not contain duplicates within their own set. Also, the arrays are not always equal lengths. Are there any tricks to speed this up? I am doing this thousands of times, so it starting to become a bottle neck in my program, which is in C#.