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

Henry Minsky hminsky at laszlosystems.com
Tue Sep 23 05:31:34 PDT 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20080923/7beea308/attachment.html


More information about the Laszlo-dev mailing list