The first suggestion I have is that you make friendoffriend.pl into a module and call it as a subroutine rather than starting one million new copies of perl. That would probably save about half of your runtime.
In reply to Re: Efficiency of a Hash with 1 Million Entries
by BrowserUk
in thread Efficiency of a Hash with 1 Million Entries
by gunr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |