[Laszlo-dev] experimenting with runtime shared libraries in swf9

P T Withington ptw at pobox.com
Tue Sep 23 06:52:38 PDT 2008


See: http://jira.openlaszlo.org/jira/browse/LPP-6054

On 2008-09-23, at 08:31EDT, Henry Minsky wrote:

> I was doing some experiments with the runtime shared library feature  
> of
> swf9, in order tospeed up the debug evaluator compilations.
>
> To get the little debug eval app to reference the LFC externally at  
> runtime,
> I had it compile
> with these flags
>
> -runtime-shared-libraries=library.swf
> -external-library-path=/Users/hqm/openlaszlo/trunk/lps/includes/lfc/ 
> LFC9-debug.swc
>
> At  runtime, the shared library mechanism expects the shared library  
> to be a
> .swf file, so I
> unpacked the LFC9-debug.swc file using jar, to get the library file  
> out of
> it. There's
> a command-line option to compc to generate a .swf instead of a .swc  
> archive,
> I think it is the "-directory" option,
> but I didn't try that yet.
>
> I think all the apps could share the library if we place it in a  
> well known
> location and compile them pointing to a common URL path, like
> -runtime-shared-libraries=/lps/includes/lfc/lfc9.swf
>
> The debug-eval app got a little speedup from this, taking about 750  
> msec for
> a round trip instead of 950.
>
> This wouldn't affect the startup time for apps which are downloaded  
> the
> first time, but it would speed up
> subsequent reloads, and I bet it would  make the doc pages which  
> have a lot
> of examples in them load much faster.
>
>
>
>
>
>
>
> -- 
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com



More information about the Laszlo-dev mailing list