[Laszlo-dev] Performance Optimizations ...

Max Carlson max at laszlosystems.com
Mon Jan 31 23:15:59 PST 2005


The LPS does the conversion for you.  Provided you have caching turned 
on (it's on by default) the performance hit should only happen the first 
time the image is requested.  In general, it's not an issue unless each 
user will be downloading unique images.

If you did the conversion manually, you would get a slight performance 
gain for the first load.  Another option is to write a script that 
prefills the LPS cache by requesting each JPEG through the LPS.  Either 
one of these options would require some work on your part.

Note that 3.0+ will have the serverless deployment option.  This means 
the compiled app will be able to download JPEG files directly to the 
client without requiring conversion to .swf.  This is probably the best 
option for you, if you can wait for the official release.

Regards,
Max Carlson
Laszlo Studios

Jon Gilkison wrote:
> I'm sure a lot of people have seen the application I'm developing
> (over 84 logins from the Laszlo mailing lists).  Anyways, as a
> refresher, I'm loading a lot of external media (all JPEGs) based on
> the results of a database.
> 
> I was wondering if it'd be in my best interests to convert those
> jpeg's to SWF before my Laszlo application even considers loading
> them.  My understanding is that the servlet transcodes the jpeg to SWF
> before loading into the Laszlo app anyways, so would I be saving some
> time/energy by generating SWF versions of the JPEG prior?
> 
> Sorry if this isn't clear, but I was just curious.
> 
> Thanks,
> 
> Jon.
> _______________________________________________
> Laszlo-dev mailing list
> Laszlo-dev at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
> 



More information about the Laszlo-dev mailing list