Re: store script bloats saved files?
Re: store script bloats saved files?
- Subject: Re: store script bloats saved files?
- From: Sander Tekelenburg <email@hidden>
- Date: Tue, 5 Feb 2002 04:31:28 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
At 23:18 +0000 UTC, on 04-02-2002, has wrote:
[...]
>
It looks to me like store script stores not just the script object it's
>
being told to store, but also a *complete copy* of the script that spawned
>
it! This is quite a pain if the creator script is a quarter MB in size
>
(compiled), and is grossly inefficient and/or overkill.
>
>
Anyone else found the same behaviour, and/or ways to avoid it if they have?
>
Is it a sign of clumsy data sharing in action, or something else? Has it
>
been changed/fixed in newer versions of AS (I'm on 1.3.7 under OS8.6)?
I happened to be playing with the same sort of thing just a few days ago and
I noticed the same behaviour. (Under Mac OS 9.2.1 btw.)
What might play a role here is how the spawned script is created. What I do
is I have the main script (an applet) make a copy of itself, then have it
store a script object into that copy, overriding what was there. Perhaps a
bit of a 'dirty' way to create a script, and this size issue may be the
price; "store script" seemingly doesn't really wipe the original data in the
object. (If so, besides size, also security/privacy may be an issue in some
situations.)
Would be interesting to know why this happens the way it does. Would be even
better to know an elegant way to avoid it, or even just a way around it :)
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <
http://www.pgp.com>
iQA/AwUBPF9R+usywKfXgqKdEQIZvACfTtNJsg71TCsYCLSQsWsavLi8gN0An1zi
KwiC0so3pWphnTYxCOtMTL9g
=zjHf
-----END PGP SIGNATURE-----
--
Sander Tekelenburg, <
http://www.euronet.nl/~tekelenb/>