Originally posted by: glugglug
VB/VBscript array manipulation SUCKS performancewise, you want to minimize what operations you actually do with arrays.
So rather than making a second (sorted) array to check for duplicates in, loop through putting each element in a dictionary. When you come across an element that's already in the dictionary, that means it's a duplicate.
