Page 1 of 1

Improving performance with JAI?

Posted: Thu Jun 17, 2010 8:36 am
by 15355046
While profiling our reporting solution I noticed that a significant amount of time is "lost" in

Code: Select all

com.sun.imageio.plugins.png.PNGImageWriter.write(IIOMetadata, IIOImage, ImageWriteParam)
which is called from

Code: Select all

com.steema.teechart.exports.ImageExportFormat.save(ImageOutputStream)
I was wondering whether the installation of JAI (Java Advanced Imaging) with its native libs would improve performance? Is TeeChart prepared to make use of JAI?

Cheers,

Re: Improving performance with JAI?

Posted: Thu Jun 17, 2010 12:54 pm
by 15355046
My findings:
- TeeChart has, as expected, no problem with JAI ImageIO
- since ImageExportFormat uses ImageIO.getImageWritersByFormatName(fileExtension) the JAI PNG writer is automatically picked up once JAI is installed
- even with the native libs the performance gain is minor (<1s)

Re: Improving performance with JAI?

Posted: Fri Jun 18, 2010 10:17 am
by yeray
Hi Tribut,

Thanks for sharing your experiences with us. We appreciate it.