I used the above code with some minor modifications : i remove the day at the beginning of each line to have the time in front -> ready to be sorted and no substr needed!
results are:
The biggest gain (more than 40 sec) was on using the while on the handle instead of the list context with grep
Thanks a lot !!!
In reply to Re^4: How to improve speed of reading big files
by Anonymous Monk
in thread How to improve speed of reading big files
by korlaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |