Bug 63407 [JFace] image reading is unbuffered
in i0520 I was tracing disk reads and noticed that when reading images we are hitting the disk for individual bytes. While there may not be a huge win here, it would likely be worthwhile using a BufferedInputStream around whatever stream is being used now.
bundles/org.eclipse.jface/src/org/eclipse/jface/resource/URLImageDescriptor.java
}
/**
 * Returns a stream on the image contents.  Returns
 * null if a stream could not be opened.
 */
protected InputStream getStream() {
	try {
		return url.openStream();
	} catch (IOException e) {
		return null;
	}
}
/* (non-Javadoc)
 * Method declared on Object.
 */
public int hashCode() {
	return url.hashCode();
}
/* (non-Javadoc)
 * Method declared on Object.
 */
/**
 * The <code>URLImageDescriptor</code> implementation of this <code>Object</code> method 
 * returns a string representation of this object which is suitable only for debugging.
 */
public String toString() {
	return "URLImageDescriptor(" + url + ")"; 
}
}