Improving performance with JAI?

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
Tribut
Newbie
Newbie
Posts: 3
Joined: Tue Jan 12, 2010 12:00 am
Contact:

Improving performance with JAI?

Post by Tribut » Thu Jun 17, 2010 8:36 am

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,

Tribut
Newbie
Newbie
Posts: 3
Joined: Tue Jan 12, 2010 12:00 am
Contact:

Re: Improving performance with JAI?

Post by Tribut » Thu Jun 17, 2010 12:54 pm

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)

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Improving performance with JAI?

Post by Yeray » Fri Jun 18, 2010 10:17 am

Hi Tribut,

Thanks for sharing your experiences with us. We appreciate it.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply