in reply to Re: nested loops to compare 2 files is only looping a limited number of times.
in thread nested loops to compare 2 files is only looping a limited number of times.
I especially like si_lence's hash idea. That is what I usually do for exactly the reason that si_lence notes: since the files are not that long, the hash approach allows you to (1) dispense with one of the loops in the nest and (2) makes for very quick locating of matching entries.
I am embarassed that I didn't see that when I posted my response earlier to the excellent stevemayes response.
|
|---|