From: SourceForge.net <no...@so...> - 2010-10-05 03:47:43
|
Bugs item #3081262, was opened at 2010-10-04 22:47 Message generated for change (Tracker Item Submitted) made by mgricken You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=3081262&group_id=44253 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Interactions Group: 4: Serious Status: Open Resolution: None Priority: 8 Private: No Submitted By: Mathias Ricken (mgricken) Assigned to: Nobody/Anonymous (nobody) Summary: System.out.print Flood Makes DrJava Hang Initial Comment: When printing very long lines without line breaks, DrJava slows down and becomes unresponsive. It basically hangs. This isn't the case when the same amount of information is printed, but with line breaks inserted. This program is bad: public class FloodDrJava { public static void main(String[] args) { for(int i=0; i<10000; ++i) { System.out.print("Hello "+i+" "); } } } This program is not so bad: public class FloodDrJava { public static void main(String[] args) { for(int i=0; i<10000; ++i) { System.out.println("Hello "+i+" "); } } } It seems like it's appending to long lines that's killing the performance. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=3081262&group_id=44253 |