in reply to Increase script speed
You seem to be using "find" on each iteration of a list of lines from your one input file. Are you sure you aren't doing repetitions? (When directory trees are really large, full traversals using File::Find can be really time consuming. Get a clear idea of what tree(s) you need to traverse, and make sure you only do that once (storing stuff in a hash or array as needed).
Apart from that, the timing issue would seem to depend mainly on the size of your input file, and the size of the directory trees you're traversing. Can you give us some stats on that?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Increase script speed
by ctrevgo_learn_perl (Initiate) on Jun 06, 2015 at 05:43 UTC | |
by graff (Chancellor) on Jun 07, 2015 at 01:34 UTC |