in reply to Re^2: Optimising a search of several thousand files
in thread Optimising a search of several thousand files
Urk! What is that seek doing in there? You already have the line in $data and the start point in $pos. (split /\t/,substr $data, $pos)[0,3] ought do the job. It may be faster to constrain split to just finding the first 4 elements, but I'd have to benchmark that.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Optimising a search of several thousand files
by McDarren (Abbot) on Jan 29, 2007 at 09:33 UTC | |
by glasswalk3r (Friar) on Jan 29, 2007 at 13:05 UTC |