Hi Hegde,

Thanks for you response .

After I got your email I tried by adding 15 components to Pannel , VBox,HBox
and Canvas.
I tried reducing size of my browser 20 times and took the Maximum memory
used and the current memory used .

I see Panel took 102 KB more compare to Canvas ( I used vertical layout for
Panel) . By seeing just 102 KB , My project Max I have 20 panels ,so I may
loose 1 MB memory If I use panel .May be in worst case 2 MB . I should
prefer panel unless my project is very big .

I think there is no action script code in 3 to calculate memory . But in 4
It is available

http://livedocs.adobe.com/flex/gumbo/html/WS2db454920e96a9e51e63e3d11c0bf67110-7ffd.html

I used flex builder profiler to calculate the memory . Last two days I am
playing with profiler to see the memory usage .I should more worry about
Loitering Objects.They are killing me and not able to understand them.

For yesterday check I used just simple following code( I replaced Panel with
Canvas,VBox and Hbox and tested.) Today after I got your email and blindly I
added 15 components to the panel and tested and again replaced panel with
Canavas and tested.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="absolute">
    <mx:Panel x="102" y="48" width="250" height="200" layout="vertical">
    </mx:Panel>


</mx:Application>

Regards
Kiran

On Thu, Oct 8, 2009 at 9:09 AM, Preetham Hegde <[email protected]>wrote:

> Hi Kiran,
>
> Did you test layouts with child?
> As i know in Canvas the layout is absolute, so the resources used to
> calculate the child position is reduced.
>
> Where as for HBox,VBox i think it should consume more memory if it is
> having child in it. And may be
> resources consumed will be proportional to child in it.
>
> And about Panel it is expected because it has some more styles applied it.
> May also vary if we use absolute layout.
>
> Can you please share your memory testing code or test above cases.
>
> On Tue, Oct 6, 2009 at 6:40 PM, Kiran Kumar Vasireddy <[email protected]
> > wrote:
>
>> I just did a dummy run for these layout managers and the memory consumed (
>> I thought canvas consumes less memory than H and V boxes , but is consuming
>> more . I know It utilizes less CPU )
>>
>>
>> Panel- 1069 K
>>
>> Canvas-874 K
>>
>> HBox-872 K
>>
>> VBox-873 K
>>
>> Regards
>> Kiran
>>
>>
>>
>
>
> --
> Regards,
> Preetham Hegde
>
>
> _______________________________________________
> A goal without plan is just a wish.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to