[osflash] flash2javascript
Kevin Newman
CaptainN at unFocus.com
Mon Jun 23 09:08:00 PDT 2008
If they are claiming import is similar to with then I'd bet performance
would suffer.
The with statement puts the scope defined within it at the end of the
scope chain. That means for any variable "imported" with "with", the
interpreter has to jump scope all the way to the top every time it can't
find that variable in the current scope. That can be very costly in
terms of performance (out of scope lookups are one of the most expensive
tricks to use in javascript, unless my info is out of date).
Of course that's just an observation based on the example code posted at
that link - I have no knowledge of the actual implementation. :-)
Kevin N.
nootropic mlist wrote:
> sound interesting..what about performance?
>
> 2008/5/27 Niels Wolf <niels.wolf at mediacatalyst.com
> <mailto:niels.wolf at mediacatalyst.com>>:
>
> Hey.
>
> Sorry for spamming but i found this somehow interesting for this list:
> http://www.effectgenerator.com/AS3Wrapper/
>
> Niels
>
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org <mailto:osflash at osflash.org>
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
More information about the osflash
mailing list