I'm trying to write a simple lightweight image browser in Java, currently I'm using ImageIO.read(new File(/* PATH_TO_IMAGE */))
to load the images.
Problem is, to load 10 JPEG's takes 10467 milliseconds. This seems much to slow especially when I'm planning on possibly loading hundreds of images.
Is there any faster way to load them?
Also, I'm drawing thumbnails by overriding paintComponent
in a JPanel and painting the thumbnails using Graphics2D, if that makes any difference.
(and feel free to suggest a better way to do this)