Loading images from files, inputstreams, or URLs via the variants of Toolkit.getImage( ... ) is incredibly slow in gcc-4.0-20050130.
Even creating a few small icons incurs noticable overhead (some seconds) on my Athlon 2600+. Loading JPG-images of ~800x600 pixels can take over ten seconds. No seperate testcase, but you can use the testcase for bug 19839 (supply a bigger image instead of the small 64x64 icons) or the program attached to http://gcc.gnu.org/ml/java/2005-02/msg00016.html -- Summary: AWT Toolkit.createImage very slow Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: AWT AssignedTo: fitzsim at redhat dot com ReportedBy: hendrich at informatik dot uni-hamburg dot de CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19846