C
Colin chaplin
Hi All
I've got a little quick and dirty perl program that scans through logfiles
for certain words and counts them up. Trouble is, it's quite slow and I was
wondering if you smart chaps could suggest a way of speeding it up. The
logfiles are about 50MB in size, and I'm running it on a reasonably powerful
PC
The Psuedo code is
For each logfile in the directory:
read into an @rray
close file
for each line of array
do text processing stuff
print results on screen
I've played about with not reading into an array just reading the file line
by line, no obvious change either way
As I said its written using basic perl data types, so I was wondering if
there is a quicker way to store and process this data ?
I've got a little quick and dirty perl program that scans through logfiles
for certain words and counts them up. Trouble is, it's quite slow and I was
wondering if you smart chaps could suggest a way of speeding it up. The
logfiles are about 50MB in size, and I'm running it on a reasonably powerful
PC
The Psuedo code is
For each logfile in the directory:
read into an @rray
close file
for each line of array
do text processing stuff
print results on screen
I've played about with not reading into an array just reading the file line
by line, no obvious change either way
As I said its written using basic perl data types, so I was wondering if
there is a quicker way to store and process this data ?