Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4854923
Votes 2
Synopsis TIFF plugin performance problem
Category jai:codec_imageio
Reported Against 1.0-dev
Release Fixed 1.0_01
State 10-Fix Delivered, request for enhancement
Priority: 3-Medium
Related Bugs 4856602 , 4855931 , 5031828 , 5040091
Submit Date 28-APR-2003
Description
A user claims the TIFF imageio plugin is more than 10 times slower than the TIFF encoder in JAI Codec when encode tiled TIFF in jpeg.  Also, the size of the result image is significantly larger than the one generated from the TIFF encoder in JAI codec.

The test programs and the test images for reproducing this problem are attached.
Work Around
N/A
Evaluation
  xxxxx@xxxxx   2004-04-30

TIFFJPEGCompressor is writing first to a wrapped ByteArrayOutputStream, getting the byte array from that stream, and then writing that array to the actual output stream. It would be ideal if the eventual output stream were written to directly. Also it would be good to write a single JPEGTables field and then each strip or tile as an abbreviated stream.

On the decoder side data were also being read into an intermediate byte array but this problem has been fixed.

Actually this is probably not the source of the problem. It looks as if in the writer the optimized data layout case is not being used and data are copied row-by-row. The input image has reverse-oriented band offsets {2, 1, 0}.
  xxxxx@xxxxx   11/2/04 02:34 GMT

Verified that the problem is due to falling into the generic unoptimized path.
  xxxxx@xxxxx   2004-11-06 01:13:54 GMT
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang