G
Guest
I only do occasional Perl programming and most things I write are
short processes. I have something I'm working on that is scanning a
text file with about 15 million lines and trying to extract matches
from another text file, which has about 170 entries. The second text
file is read into an array. The process then scans through the big
file for certain possible patterns - it will find those in about 1 out
of 25 lines,, when it finds one, it then loops through the array
trying to find a match there, and then writes out a couple of lines
into another text file.
It also writes to the screen a summary line about every 25th record.
When I run this it takes anywhere from 1.5 to 7.5 hours. It seems that
to avoid the 7.5 hour time, I should fresh reboot, and ctrl+alt+del
almost everything.
But even 1.5 hours is too long since I need to be able to run this
with different sets of data several times a day,
One thought I had is that writting a summary progress to the screen
[which helps me judge how far along it is, may be slowing things down]
Running Windows 98 SE and the latest version of Active Perl.
short processes. I have something I'm working on that is scanning a
text file with about 15 million lines and trying to extract matches
from another text file, which has about 170 entries. The second text
file is read into an array. The process then scans through the big
file for certain possible patterns - it will find those in about 1 out
of 25 lines,, when it finds one, it then loops through the array
trying to find a match there, and then writes out a couple of lines
into another text file.
It also writes to the screen a summary line about every 25th record.
When I run this it takes anywhere from 1.5 to 7.5 hours. It seems that
to avoid the 7.5 hour time, I should fresh reboot, and ctrl+alt+del
almost everything.
But even 1.5 hours is too long since I need to be able to run this
with different sets of data several times a day,
One thought I had is that writting a summary progress to the screen
[which helps me judge how far along it is, may be slowing things down]
Running Windows 98 SE and the latest version of Active Perl.