[Golist] Go and garbage collection

Moses Gunesch moses at goasap.org
Sun Nov 23 17:53:23 PST 2008


have no fear, Go is fine tuned for all your automated GC needs. trash  
days are monday, wednesday and friday. ;-)

go is the perfect balance between overmanaged as2-style engines that  
trap references, and entirely unmanaged classes like flash's Tween  
class which can get GC'd during play unless you set a hard reference  
in your code.

with Go, once you start a tween or sequence you don't have to store a  
reference to it and it will finish playing, then get GC'd later. (Be  
sure to useWeakReference on your event listeners in this case.) Or,  
you can store hard references to tween/sequence objects in your code  
and reuse them as many times as you like.

:-)

m


On Nov 22, 2008, at 8:15 PM, Joel Stransky wrote:

> Just spent all day learning how bad FP9 is at garbage collection.  
> AS3 really seems like a bad joke sometimes. Got me thinking though,  
> what does GO do with all those references once an item or sequence  
> completes? I'm too tired to read through the source atm so I hoping  
> it just "does". fingers crossed. :)
>
> -- 
> --Joel Stransky
> stranskydesign.com
> _______________________________________________
> GoList mailing list
> GoList at goasap.org
> http://goasap.org/mailman/listinfo/golist_goasap.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://goasap.org/pipermail/golist_goasap.org/attachments/20081123/eff6412d/attachment.html>


More information about the GoList mailing list