in reply to Re^4: Splitting Apache Log Files
in thread Splitting Apache Log Files
execution time went done to 22seconds.
You must have a pretty damn fast disk. SSD?
I split a 500MB file into 10 on the basis of a single digit at a fixed position in each line:
while( <> ) { print {$fhs[ substr $_, 2, 1 ]}, $_; }
And I can't get below 1 minute.
If you're managing to test each line against many (how many?) regexes, and still beat mine by 60%, I want a disk like yours.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Splitting Apache Log Files
by cmm7825 (Novice) on Apr 27, 2010 at 05:36 UTC | |
by BrowserUk (Patriarch) on Apr 27, 2010 at 05:57 UTC |