in reply to Complex Sorting Optimization?
use Devel::DProf and dprofpp.pl to find out what is slowing you down. (If need be, put each line into a separate subroutine so that DProf will analyse it.)
#perl -DDProf script.cgi
#dprofpp.pl
Second meta-reply
Maybe it would be better if you read only the new bits of the logfile. I don't know if this logfile keeps on growing, but if so, keep a count of the number of lines you've already processed, and append the results of your processing to a file. dave hj~
|
|---|