in reply to how to speed up pattern match between two files
- I'd check if you are exhausting your available RAM
- I'd use split
- I'd build a hash keyed by sorted pairs and skip regex/index entirely
- If not enough RAM, I'd process the first file $N lines at-a-time