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 reply to Re: character-by-character in a huge file
by hardburn
in thread character-by-character in a huge file
by mushnik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |