in reply to Re: Grep Speeds in thread Grep Speeds
Hey,
Well to answer your question, what the program does is, for each site/per date/per half hour it grabs data from 2 different files. It then tkaes this data, and performs a lot of calculations to print numbers such as dropped calls, and total traffic etc. As of yet, no graphs or charts, all the data is just dumped into the arrays and then a subroutine takes the data and performs calculations and prints the results.
Dipul
Re: Re: Re: Grep Speeds
by jeroenes (Priest) on Feb 06, 2001 at 21:22 UTC
|
As long as you don't want to do recalculations (as in
deviations from the mean, or percentages from the max)
you can stick with a database-less solution.
If you already know that you want the last lines of your
database, why don't you just use '
open DATA, "tail -n $number $filename|";'?
That would speed up things, as perl doesn't have to work
the whole file.
Jeroen
"We are not alone"(FZ) | [reply] [d/l] |
|
Hey,
Well, i need the whole file, because all the data is some how used within the calculations. The first 3 columns define the data, then the rest actually contains the data which is used in the calculations
Dipul
| [reply] |
|