Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Grep Speeds

by ImpalaSS (Monk)
on Feb 06, 2001 at 21:06 UTC ( [id://56702]=note: print w/replies, xml ) Need Help??


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

Replies are listed 'Best First'.
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)

      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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://56702]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-23 22:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found