Community
Participate
Working Groups
When output alternates between standard out and standard error, console performance is poor - as the implementation only polls for output up to a max of 8Kbytes, or until streams change. Thus, there is a 100ms delay each time output changes streams.
*** Bug 20949 has been marked as a duplicate of this bug. ***
Fixed. Here is an example program: public class Alternate { public static void main(String[] args) { int i = 0; while (i < 100) { System.out.println("Output: " + i); System.out.flush(); System.err.println("Error: " + i); System.err.flush(); i++; } } }
Please verify, Darin S. Notes: * when the example program is run the first time after a workspace re-start, output from the streams does not appear in the expected order. This is due to plug-in startup and classloading. The program actually runs to completion, filling the streams, and then we process each stream resulting in non- interspersed output (i.e. you can get all the std out output followed by all the std err output). * When run a second, or many times, the output appears interspersed as expected. Still, due to timing issues, the output is not guarenteed to be interspersed.
Verified.
*** Bug 17300 has been marked as a duplicate of this bug. ***