There's more than one way to do things | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
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) In reply to Re^2: ?? Blazes under Linux; crawls under XP & Win2K...
by pKai
|
|