4 Sep 2012 11:16 PM #1
Unanswered: Memory crash + Nestedlist + treeStore + ios
We have a complex ios app built with Sencha Touch 2.
We are using Nestedlisted + treestore to show data. It goes till 20 Levels in depth and some 10K records.
After loading the store once, it fails in iphone 3GS first time itself. In iphone4S it run's once however second time crashes with memory warning.
We have come to a stand-still here. As we and our client is expecting to scale the above mentioned numbers further.
Please advice how to solve this blocker!
5 Sep 2012 4:56 AM #2
You are not alone:
(there is more like that, simply search for memory or crash).
10k is way to much, even 1k.
So the simple advice is to reduce data and levels.
Redesign your app, add some filters so only currently needed data is loaded etc.
Maybe 2.1 will bring some better memory handling:
5 Sep 2012 5:07 AM #3
5 Sep 2012 6:07 AM #4
6 Sep 2012 7:00 AM #5
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
2.1.0 beta 3 (when it comes out soon) will have an infinite List that can handle lots of data. NestedList of course uses child Lists so this should be getting better when beta 3 comes out. There is no setup, List will use it by default.
I changed my Ext.ux.touch.grid component to extend List to get this infinite feature and I tested just yesterday having 5,000 records in the store and it performed quite well actually!Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
6 Sep 2012 10:25 AM #6