Have a look to Mrinal's presentation on Performance tuning and do and don't for flex dev.
http://experiments.mrinalwadhwa.com/presentations/OptimizeFlexApps/initRIA.html - Deb On Oct 6, 12:24 am, "Abhinav Mehta" <mehta.88...@gmail.com> wrote: > Hi Mate > > See it directly depends and varies on application-to-application basis. > Anyways the things which takes lots of memory are images/swfs/videos as well > effects/components/classes. > The way which i find to minimize all of them is- using Action-Script with > cairngorm framework(late-binding mechanism), and than try to bind all the > needed things at the run time only.....like suppose if i want to apply a > effect to certain component than i will code it thru AS-3 and bind it > whenever i need it....but thats not the reason to use action-script. The main > intention comes here- i usually remove the components/effects/childs at the > run-time manually after using them and frees-up the memory...this is the way > I use to follow to minimize the mem-consumption. And to locate which are the > gigantic-mem. comps. I use Flex-Profiler to trace them. > Thats' it. > > Regards > Abhinav Mehta > MSRIT- Bangalore > > ----- Original Message ----- > From: Naresh > To: flex_india@googlegroups.com > Sent: Monday, October 05, 2009 8:58 PM > Subject: [flex_india:25667] Re: Fw: [flex_india:25612] Flex Memory > Consumption > > hi, > How can i increase performance of application ,my application taking lot of > memory. > Please let me know how can i optimize the memory performance. > > Thanks and regards, > Naresh. > > On Sat, Oct 3, 2009 at 11:39 PM, Abhinav Mehta <mehta.88...@gmail.com> > wrote: > > Hi Again, > > Anyways a sample program to demonstrate the concept-> > > ------------------------------------- > <?xml version="1.0"?> > <!-- optimize/ShowTotalMemory.mxml --> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > initialize="initTimer()"> > <mx:Script><![CDATA[ > import flash.utils.Timer; > import flash.events.TimerEvent; > > [Bindable] > public var time:Number = 0; > [Bindable] > public var totmem:Number = 0; > [Bindable] > public var maxmem:Number = 0; > > public function initTimer():void { > // The first parameter is the interval (in milliseconds). The > // second parameter is number of times to run (0 means > infinity). > var myTimer:Timer = new Timer(1000, 0); > myTimer.addEventListener("timer", timerHandler); > myTimer.start(); > } > > public function timerHandler(event:TimerEvent):void { > time = getTimer() > totmem = flash.system.System.totalMemory; > maxmem = Math.max(maxmem, totmem); > } > ]]></mx:Script> > <mx:Form> > <mx:FormItem label="Time:"> > <mx:Label text="{time} ms"/> > </mx:FormItem> > <mx:FormItem label="totalMemory:"> > <mx:Label text="{totmem} bytes"/> > </mx:FormItem> > <mx:FormItem label="Max. Memory:"> > <mx:Label text="{maxmem} bytes"/> > </mx:FormItem> > </mx:Form> > </mx:Application> > ------------------------------------------------ > > Regards > Abhinav Mehta > MSRIT- Bangalore > > ----- Original Message ----- > > From: "Abhinav Mehta" <mehta.88...@gmail.com> > To: <flex_india@googlegroups.com> > Sent: Saturday, October 03, 2009 11:27 PM > Subject: Re: [flex_india:25612] Flex Memory Consumption > > > Hi > > > Use Flex built-in utility of porfilers. Profilers will help you to trace > > the memory usage/consumption at the run-time with regular updates > whatever > > done at client side.....in other words, it will show you the changes in > > memory usage when user-clicks on your page, in browser or if try to load > > new pages thereof. > > > Regards > > Abhinav Mehta > > MSRIT- Bangalore > > > ----- Original Message ----- > > From: "Amit" <amitindor...@gmail.com> > > To: "Flex India Community" <flex_india@googlegroups.com> > > Sent: Saturday, October 03, 2009 11:52 AM > > Subject: [flex_india:25612] Flex Memory Consumption > > >> Hello All, > >> How do i check Flex performance and memory management in > >> the flex code,please give me some resources or source code to better > >> understand. > > >> Thank You. > > >> Regards, > >> Amit Sisodiya --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_india@googlegroups.com To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---