PDA

View Full Version : Performance Question.


thenetimp
01-04-2006, 12:13 PM
OK, and question number 2 for the day.

We have a laszlo application to create a photo gift item.

After it loads, the user is able to select one of their albums to generate a view with a list of thumbnails. This however is slow. I've deduced that requesting the list of thumbnails via XML-RPC is not the culprit coming in at .00352ms.

Looking at the tomcat logs and the apache logs this is what we see. We have a request from the laszlo app on the client to the server for the image. That image is then again being requested by the laszlo server, and returned from the server to the app. There's a lot of unneeded overhead there. Is there anyway for the client app not to have to go through the server to get the image? Can it go directly to the location of the image? And if so, how?

Thanks,
James

rcyeager
03-04-2006, 05:14 PM
I posted a solution about this very subject on another thread in this forum. Search for "image caching browser" and I think you'll find it.

My solution was to run my app in SOLO mode. This makes the dynamic image requests avoid the server, and also has the desired side-effect of caching the images properly in the browser. Fortunately for me, JAVA-RP calls to my server continue to work OK in SOLO mode.

Robert

thenetimp
03-04-2006, 06:08 PM
Originally posted by rcyeager
I posted a solution about this very subject on another thread in this forum. Search for "image caching browser" and I think you'll find it.

My solution was to run my app in SOLO mode. This makes the dynamic image requests avoid the server, and also has the desired side-effect of caching the images properly in the browser. Fortunately for me, JAVA-RP calls to my server continue to work OK in SOLO mode.

Robert

Thanks for the info. We've actually decided to go with a javascript/ajax-like solution for what we've been using lazslo for. I'll keep this in mind of we change our minds down the road.

Thanks.