I'm always interested in improving image operations. :)
Random question:
Have you timed simply making a INT_ARGB_PRE image vs making a
INT_ARGB image? I seem to recall seeing a significant difference in
that alone if the image was large enough. I may have a trick to
improve that if that's an issue.
Have you tried using ImageIO to read similar JPEG / BMP files, just
to compare?
- Jeremy
On Oct 18, 2007, at 1:34 PM, Jeff Upton wrote:
Hello. I have a Java 6 application that needs to run on Mac G5's
(10.4.9 Using the Developer Preview 6). Everything seems to work
fine - The only issue I'm having is that image loading performance
is ridiculously slow.
I'm loading PNG images (no more than 1024x1024) from a byte array.
On windows this takes around 70-80 ms. On mac, the same code takes
2.5-3 seconds. I've spent multiple hours browsing through mailing
lists and have tried multiple solutions. Here is my current loading
code:
[code]
PNGImageReader reader = new PNGImageReader( null );
reader.setInput( new MemoryCacheImageInputStream( new
ByteArrayInputStream( previewImageData ) ) );
ImageReadParam param = new ImageReadParam();
param.setDestination( img );
reader.read ( 0, param );
[/code]
If anyone has an idea or suggestion, I'm desperate for help. Could
this poor performance be a result of using the developer preview?
If I ported my application to java 5 would performance increase
significantly?
Thanks for your help,
Jeff
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/jeremy%
40tech4learning.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden