SWT Image ... Speed [message #584171] |
Mon, 07 October 2002 01:43 |
Justin Kilimnik Messages: 12 Registered: July 2009 |
Junior Member |
|
|
I have been doing a lot of work lately with the Eclipse workbench and
modifications to it, and a lot of work with SWT.
One major problem I have noticed with SWT is the Image class. Doing a
image read (1600x1200 JPEG) from the file system takes:
500ms in C++/Intel JPEG Graphics Lib
~1200ms in C# with .NET classes
~2000ms in Java using BufferedImageReader
~4000ms in SWT using the Image class and filename name constuctor
There seems to be no way to convert the standard Java Images to SWT images
so I am stuck with the bad performance of swt.Image. Is there anyway to
speed this up? One of the features with the Intel Graphics lib is that you
can (in simple terms) read the image size before loading the image fully
and decide if you wish to only read every 2nd, 4th, 8th, 16th pixel from
the file (which is a great feature when you are generating Thumbnails from
large images.
Is there someone out there on the SWT team that can help with any of this?
(I am prepared to get involved with this myself as well)
|
|
|
Powered by
FUDForum. Page generated in 0.01271 seconds