in reply to Any TIps on speeding up time performance of code?

It would be best to do some benchmarking and some profiling of the code before trying to optimize it. Benchmarking involves checking the execution time as a function of file size, to see if these show a linear vs. step function. Profiling involves timing specific blocks of code separately, and ranking them in terms of how much of the execution time is tied up in each block; the blocks that take the most time are the ones you want to focus on when trying to optimize. (Check out Devel::DProf)

Apart from that, some general issues to look at might include:

(update: fixed wording and spelling in next-to-list item)
  • Comment on Re: Any TIps on speeding up time performance of code?