M
Morris
Hi,
I've been looking for ways to send images across the network to other
machines for certain processing applications. Speed is the most
important factor in this situation.
I initially tried writing image icons, but this was much too slow. I
then tried using PixelGrabber coupled with MemoryImageSource. This
proved to be much faster (about a half second to transfer a 1024x768
image). However, after a change to jsdk 1.5, the speed dropped to
nearly 4 seconds for the same image.
I'm using an ObjectOutputStream.writeObject() with the pixel object
obtained from the PixelGrabber. I'm using various versions of Windows
and it seems to happen on all of them.
I assume there is some socket parameter or something that needs to be
adjusted in the new version. I seem to remember seeing a post about a
network cache setting somewhere?
On a related front, is there a better way to do this? I know the
exact size of each image and therefore could just write each int in
the array returned by PixelGrabber to the connection if that would be
faster than doing a writeObject().
Thanks for any suggestions.
morris
I've been looking for ways to send images across the network to other
machines for certain processing applications. Speed is the most
important factor in this situation.
I initially tried writing image icons, but this was much too slow. I
then tried using PixelGrabber coupled with MemoryImageSource. This
proved to be much faster (about a half second to transfer a 1024x768
image). However, after a change to jsdk 1.5, the speed dropped to
nearly 4 seconds for the same image.
I'm using an ObjectOutputStream.writeObject() with the pixel object
obtained from the PixelGrabber. I'm using various versions of Windows
and it seems to happen on all of them.
I assume there is some socket parameter or something that needs to be
adjusted in the new version. I seem to remember seeing a post about a
network cache setting somewhere?
On a related front, is there a better way to do this? I know the
exact size of each image and therefore could just write each int in
the array returned by PixelGrabber to the connection if that would be
faster than doing a writeObject().
Thanks for any suggestions.
morris