Apache – Flex: Where do ChildConstraintInfo objects come from

apache-flexflex3

Profiling my app I observe a fair amount of ChildConstraintInfo objects that consume almost 10% of app memory.

I'd like to understand where these objects come from. Couldn't find anything in Flex help. My assumption is they are created with each V/HBox or Canvas.

Any info is appreciated that would also help me understand how to minimize the amount of these objects.

Best Answer

My vote is that it's the constraint information of all the child components when using left, right, top, bottom positioning. (vertical center and horizontal center as well). You might be getting these high numbers if you are using a lot of nested VBox(s) and HBox(s). When ever possible you should limit these components because they take up a lot of memory to calculate their positions.

Related Topic