in reply to Re: Re: Grep Speeds
in thread Grep Speeds

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)

Replies are listed 'Best First'.
Re: Re: Re: Re: Grep Speeds
by ImpalaSS (Monk) on Feb 06, 2001 at 21:44 UTC
    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