in reply to Re^4: Removing the first record in a file containing fixed records
in thread Removing the first record in a file containing fixed records

Thank you for sharing these timings and for writing the faster code. Both are instructive.

Would the operation run even faster if coded in C?

  • Comment on Re^5: Removing the first record in a file containing fixed records

Replies are listed 'Best First'.
Re^6: Removing the first record in a file containing fixed records
by BrowserUk (Patriarch) on Jul 21, 2008 at 07:04 UTC
    Would the operation run even faster if coded in C?

    Marginally. Maybe. A straight forward conversion of the above code to C ran in 4 seconds one time and 2 the next--probably because the file was still in the system cache. But the timing was only to the nearest second.


    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.