Open GoogleCodeExporter opened 9 years ago
[deleted comment]
[deleted comment]
An addendum: although actionscript is single threaded with no yield option,
there is
a potential workaround done by Alex Harui at
http://blogs.adobe.com/aharui/2008/01/threads_in_actionscript_3.html to enable
simulated threads.
This approach should allow to "break" the interpretation of hard "tight" loops,
so
that GUI can be
refreshed and hopefully the browser can claim some CPU cycles to behave itself.
A
couple of demos of the aforementioned threading library show these benefits, so
it's
worth a try.
The interpreter would need to "break" loops and function calls (because function
calls could be recursive).
Original comment by davidedc
on 19 Dec 2008 at 2:54
Unfortunately, threading the Interpreter would probably be too much of a hack
to work
properly—it interprets the token chain as a tree, and even if we could break
out of
this, it would be nigh-on impossible to break back in (unless we linearize the
Interpreter? which could be possible).
Because I'll be scrapping the existing Interpreter and using a byte-code
generator
for the next release, I think it wouldn't be worth investing much time in this
issue.
With any luck, the next release will run at near-native AS3 speeds anyway.
Original comment by timdashryan@gmail.com
on 19 Dec 2008 at 11:56
Original comment by timdashryan@gmail.com
on 20 Dec 2008 at 12:04
Original issue reported on code.google.com by
davidedc
on 19 Dec 2008 at 11:22