Perl-Sensitive Sunglasses | |
PerlMonks |
Re: character-by-character in a huge fileby hardburn (Abbot) |
on Apr 08, 2004 at 17:43 UTC ( [id://343679]=note: print w/replies, xml ) | Need Help?? |
Try writing a quick program that reads the file in whatever way your main program does. Just read it in and nothing else. Keep track of the run time. Then compare it to the runtime of the real program. I bet there isn't a great deal of difference. The reason is that simply reading 3GB of data using any method is going to be quite slow. ---- Note: All code is untested, unless otherwise stated
In Section
Seekers of Perl Wisdom
|
|