|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: how to speed lookups?by dragonchild (Archbishop) |
| on Nov 11, 2008 at 21:01 UTC ( #722994=note: print w/ replies, xml ) | Need Help?? |
|
What is $linecontainsbuf{$searchfield} = $line for @validbufs; doing? You're also going to have memory issues because you're, essentially, loading both files into RAM. Best would be to sort the two files on the relevant keys (using an external sort program), then iterate through the filehandles. Remember - once you've seen something in %valid_bufs, you can't see it again. My criteria for good software:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||