in reply to How to cut down the running time of my program?
Trivial using a database
SELECT * FROM File1 WHERE id IN ( SELECT id FROM File2 )
But really, it's also trivial using Perl.
Either way, you read and process each line of the first file once, not once per line in the second file.
|
|---|