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
Confirmed.
Fixed by Sven de Marothy in GNU Classpath. Closing.