arrays - AS3 Refference memory length/size -


I was wondering how much memory is in possession of a single reference for any object in the ActionScript?

If I have an example of some object and want to process them on a specific sequence, then I make them indents in the first array with an array or vector of uint Give it

I can count on how much memory it will take to allocate this specific code to uint , but it is not known how to create another array as a set of references. How much will it take for it. I need to specify that the type of every reference object is needed so it will probably be more than 32bits.

I think that number objects also need reference at some point but if I make vector it is going to be constant data in memory and only about what type of members in this vector Will the information be in and how can the processing capacity be affected?

Maybe a simple code w would be better what I would say.

  On mo, thou, we, th, bit, fr, su: object, basically my question which is more in terms of memory usage (and speed too) than those methods Are skilled; Var day: Array = [mo, t, we, th, fr, sa, su]; Var Day Off: Array = [Mo, We, F]; (Var i: int = 0; i & lt; daysOff.length; i ++) {trace (dayoff); }  

or

  var mo, t, we, th, fr, bit, su: object; Var day: Array = [mo, t, we, th, fr, sa, su]; Var day: Aare: array = [0, 2, 4]; For (var i: int = 0; i & lt; daysOff.length; i ++) {trace (day [dayoff [i]]); }  

I can compare the serialized data length but I am not sure about it because a lot of data like privatization is lost due to the serialization process. Somewhere in depth AS3 is the context of the reference of the objects?

"itemprop =" text ">

You can figure out how much data of any object can work in data serial and then byte array The length is to use to count.

Unfortunately, there is no easy way to work out the full size of the whole object with all its functions and properties. Action scripts do not have the ability to communicate directly with the memory areas, even with this ability, all parts of the action script object automatically reference (including the task) to the object Say, you will need a recursive scan to keep the tunnel through all the references until you get the base data representation.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -