-
Bug
-
Resolution: Fixed
-
P3
-
5.0
BufferedImage has field properties that can be initialized to null, but (starting from the JDK1.5) it is needlessly filled with new instance of Hashtable on first call to getProperty. We use BufferedImages for icons so we have hundreds of them on the heap in NetBeans. Each such icon wastes nearly 100B on empty unused Hashtable.
Very similar situation is with X11CachingSurfaceManager (that is attached to each instance of BufferedImage), where most of instances (~90%) have the accelSurfaces Hashtable empty.
That is together nearly 200B wasted per each 16x16 pixels icon.
###@###.### 2005-03-08 10:20:00 GMT
Very similar situation is with X11CachingSurfaceManager (that is attached to each instance of BufferedImage), where most of instances (~90%) have the accelSurfaces Hashtable empty.
That is together nearly 200B wasted per each 16x16 pixels icon.
###@###.### 2005-03-08 10:20:00 GMT
- duplicates
-
JDK-6237797 BufferedImage creates an unnecessary empty Hashtable
-
- Closed
-