in reply to Needed Performance improvement in reading and fetching from a file
Hi,
I agree with smiffy. Even just splitting up to the fields you need, would not make that much difference, pushing to an array and later going again over it for printing is superfluous; if you really need to get it these way from another part of the program, you can also think of using an iterator/closure.
And again, are you really sure it's this section that is taking all the time? have you used Devel::DProf or Benchmark::Stopwatch?
Regards,
fmerges at irc.freenode.net
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Needed Performance improvement in reading and fetching from a file
by harishnuti (Beadle) on Oct 08, 2008 at 07:23 UTC | |
by marto (Cardinal) on Oct 08, 2008 at 08:23 UTC | |
by harishnuti (Beadle) on Oct 08, 2008 at 08:38 UTC |
In Section
Seekers of Perl Wisdom