I have been working around Sencha Touch2 Application development for android and iPhone. Though I am not a newbie to mobility, I am still learning Sencha Touch and ExtJS.
My application has couple of screens with ListView on each screens. My application is adhered to Sencha MVC pattern. It uses card layout, placed to the view port and different forms/Components added on top of it. One AJAX request is made to make the data available for all screens. As a response I get JSON response of 1000 records. Sample Json response given below.
[{
"key1": "Similarities between Operations and Projects",
"value1": "Some Value"},
{
"key2": "Differences between Operations and Project",
"value2": "Some Value"},
.... {}, {}, {}
]
I have to parse the JSON and update the store so that my list will display all the content. I have tried two ways of doing it
- Directly using proxy to the store
- Manually applying the loop and adding records to store
But in both the ways the application is damn slow.
I understand for JavaScript may be 1000 records are huge. But I want to understand, if I can do this better in anyways.
I have did goggling and searched over stack-overflow (pasted link below), But, found nothing satisfactory.
PhoneGap 1.4 wrapping Sencha Touch 2.X - What about performance?
My thoughts: Currently all the records/ JSON response object is stored as a global object. I may reduce by storing it either to SessionStore or LocalStore. Is this statement valid?
Kindly help me to understand if I could improve it in anyways.