in reply to ?? Blazes under Linux; crawls under XP & Win2K...

In addition - your code was tested under WinXP (cpu 600Mhz)
with 1,919,147 bytes file (80000 lines). The script
took 111 seconds. Obviously it is not Perl code problem.


  • Comment on Re: ?? Blazes under Linux; crawls under XP & Win2K...

Replies are listed 'Best First'.
Re^2: ?? Blazes under Linux; crawls under XP & Win2K...
by pKai (Priest) on Jan 09, 2006 at 15:40 UTC

    I made some similar tests with the code snippet with a varying size of number of lines and line lengths.

    I the worst case (3MB, 1M lines à "x\n") it took well over 10 mins to run through on the local harddisk.

    In my perception, the runtime of the code was determined (about linearly) by the number of lines in the data file. (I'd attribute this to the devasting effect of the continuous open/close operations)

    Also, working on a network drive (opposed to the local HD), increased the time needed by an order of magnitude. (9923 secs over LAN vs. 723 secs local for my 1M lines data file with a slightly inferior machine than sh1tn's; WinXP)