in reply to Re^3: How to improve speed of reading big files
in thread How to improve speed of reading big files

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 !!!

  • Comment on Re^4: How to improve speed of reading big files

Replies are listed 'Best First'.
Re^5: How to improve speed of reading big files
by BrowserUk (Patriarch) on Sep 21, 2009 at 13:34 UTC

    Chopping off the date instead of prepending/sorting/removing the time--cool!


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.