Titanium JIRA Archive
Appcelerator Community (AC)

[AC-817] Performance degradation in Titanium SDK 3.3.0.GA for the listSection.updateItemAt method in IOS

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2015-04-06T23:37:15.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
LabelsTCSupportTriage
ReporterEric
AssigneeMauro Parra-Miranda
Created2014-09-21T06:07:26.000+0000
Updated2016-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}

Comments

  1. Eric 2014-12-11

    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.
  2. Eric 2014-12-29

    just tried it on 3.5.0.RC and seems to be fixed, closing

JSON Source