[AC-817] Performance degradation in Titanium SDK 3.3.0.GA for the listSection.updateItemAt method in IOS
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-04-06T23:37:15.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | TCSupportTriage |
Reporter | Eric |
Assignee | Mauro Parra-Miranda |
Created | 2014-09-21T06:07:26.000+0000 |
Updated | 2016-03-08T07:37:05.000+0000 |
Description
On the iPhone Retina (4-inch) Simulator running iOS 7.0.3, the listSection.updateItemAt method is significant slower in the new Titanium SDK 3.3.0.GA as compared to 3.2.2.GA.
The following code running on 3.2.2 takes about 2 seconds for the apples to change to oranges, but on 3.3.0, it took about 10 seconds. It's a lot worse when you have a slightly more complicated list template.
{quote}
var win = Ti.UI.createWindow({backgroundColor: 'white'});
var listView = Ti.UI.createListView();
var sections = [];
var listSection = Ti.UI.createListSection();
var dataSet = [];
for (var i = 0; i < 3000; i++) {
dataSet[i] = {properties: { title: 'Apple'}};
}
listSection.setItems(dataSet);
sections.push(listSection);
listView.sections = sections;
win.add(listView);
win.open();
for (var i = 0; i < 3000; i++) {
listSection.updateItemAt(i, {properties: { title: 'Orange'}});
}
{quote}
Hi, any updates on this? I'm stuck on 3.2.2 because of this bug. Is there any workaround for the moment? Any feedback would be appreciated, thanks.
just tried it on 3.5.0.RC and seems to be fixed, closing