JDK-8101857 : Reduce memory needed by JPEG loader when down-scaling
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 7u6
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2012-03-21
  • Updated: 2015-06-16
  • Resolved: 2012-09-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Fixed
Related Reports
Relates :  
Relates :  
Description
We should consider reducing the memory needed by JPEG loader when down-scaling. See RT-20295 for a test case. Currently we load the entire image in memory and then down-scale it, which is technically correct, but uses more memory than might be needed if we scaled as part of the loader.

This would complicate the loader, so we may or may not want to actually implement this.
Comments
I've verified that this is fixed by the fix to RT-24601. Using top and jmap I can clearly see the drop in memory consumption: Before: 245863792 [B After: 55324568 [B
05-09-2012