in reply to Merge 3 files into one file

My advice is that you profile your code to identify where the slowness originates, then you'll know what you need to address. If your bottleneck is the disk I/O and you're dealing with large files, there may not be much you can do.

Replies are listed 'Best First'.
Re^2: Merge 3 files into one file
by shawshankred (Sexton) on Mar 13, 2009 at 04:52 UTC
    bellaire, Thanks a lot for the suggestion, I used hash and the script now is taking less than a minute.