I don't know the answer, but I'm pretty sure the answer is NOT JAI,
because that has never been accelerated on the Mac (AFAIK).
Toolkit.getImage is probably the fastest (it creates BufferedImages on
the Mac, so you can cast the Image to BufferedImage without any
conversion), since it's going to be in native code, and it creates
separate threads to read each image (launch a few in parallel, and use
listeners to get the results).
You can try Toolkit.getImage("file://...stuff...png") and
Toolkit.getImage("NSImage://....stuff....png") as they might take
different paths through the code.
-Joshua
On Sep 19, 2008, at 1:50 PM, Bill Janssen wrote:
Yes, thank you all for more overall discussion of program
optimization.
But I do know that stuff, have for years, and it has no bearing on the
specific Apple Java technical question I'm looking for an answer to:
Given standard (latest) Apple Java 5 on Intel OS X 10.5, no external
add-ons, no real memory constraints, what's the fastest way to load a
24-bit color PNG image from a file, with a BufferedImage being the
result? Is ImageIO.read() the fastest, or is there a different route,
perhaps using the provided JAI in some way? Or some CoreImage
trickery?
Or does ImageIO.read() already just do that for me?
Bill
_______________________________________________
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
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