actionscript 3 - In FLash AS3, does extending an object use more memory, even if the object's methods aren't used? -


i creating object pool cache recyclable objects in memory @ outset of application in order avoid (as possible) performance issues caused gc running; if possible i'd minimize memory object pool reserves, i'm attempting pool generic forms of objects (with no methods) , casting generic variants more specific , complex object types extend generic form when want them on stage. trouble requires generic variant class import/extend movieclip (because more complicated objects movieclips , make use of displayobject methods)-- importing and/or extending class add memory object takes when instantiated if never uses methods inherited class? makes sense would, , light profiling seems suggest does, i'm not 100% certain. how large should 'empty' movieclip instance in bytes?

thanks, ccj

i no, @ least not significantly. if little, it's unlikely present problem you. there 1 'copy' of bytecode in memory anyway, footprint of individual object depend on number , type of properties, actual code not come it.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -