|P is for Practical|
Re^4: cut vs split (suggestions)by sk (Curate)
|on Apr 17, 2005 at 07:01 UTC||Need Help??|
Very interesting! Thanks for the new idea!
I lost my server connection for some reason and so I tested this on my laptop and I do see a very good improvement with the your modification.
update: corrected <> with $_ per pijll post
this finishes in about 14 seconds.... corrected timing
this takes about 18 seconds
I don't have a timing utility in Windows so the times are just wallclock times.
I guess windows is faster because the process run at 100% CPU (or whatever is required i guess?). On the UNIX servers the process might be more time-shared?
My laptop is 1.6G Centrino/1GB Ram/perl, v5.6.1
SK Update: Thanks pijll, the time it takes to run your version of the code is almost same as the one that uses -n.