I have an application that I made that prints out the bytes of a file to the system console. (cmd.exe, in my case) It is working very well, but I wanted it to go faster(for large files) so I optimized it. From my own testing, the part where it reads bytes from the file and stores them in a char array takes 15 to 32 milliseconds on a 250,000 byte file, but printing those chars to the command window takes over 9000 milliseconds!(9 seconds, almost 300 times slower!) I have tried http://www.rgagnon.com/javadetails/java-0603.html but I did not see a significant improvement.
Is there a way to print to the console faster or do I have to go with the JFrame/JTextArea strategy? I/O in general is slow. What do you gain by printing out the bytes?