ViaoV
25 Jun 2009, 9:57 AM
I am building a fairly large application with Extjs. It basically consists of a Tab Panel and tool bar menu. Various, fairly complicated tabs, are added to the tab panel via Tool button menu clicks. Because some times the tabs can have multiple instances I moved away from using Ids at all and Ext.getCmp. So I just started referencing everything with javascript variables. Though this seemed to get complicated and tricky in some instances and after looking at the RSS example i decided to just start extending panels to create the tab panels.
So far this works perfectly and having the this keyword to fall back on is really helpful. However, it is getting fairly extensive and the memory usage is starting to rise. I am assuming there is a performance hit when extending the components as the components structure and the initialized object are both in memory, thus everything is using twice the amount of memory? I am just wondering how severe the performance hit will be, should I go back to functions that just create panels and add them to the tab panel or stay with extended panels and functions that just initialize them?
I tried looking around on the forums and could only find things about memory leaking. Sorry if this has been gone over.
So far this works perfectly and having the this keyword to fall back on is really helpful. However, it is getting fairly extensive and the memory usage is starting to rise. I am assuming there is a performance hit when extending the components as the components structure and the initialized object are both in memory, thus everything is using twice the amount of memory? I am just wondering how severe the performance hit will be, should I go back to functions that just create panels and add them to the tab panel or stay with extended panels and functions that just initialize them?
I tried looking around on the forums and could only find things about memory leaking. Sorry if this has been gone over.