{"action":"created","issue":{"url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/issues/788","repository_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows","labels_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/issues/788/labels{/name}","comments_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/issues/788/comments","events_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/issues/788/events","html_url":"https://github.com/appcelerator/titanium_mobile_windows/pull/788","id":167520447,"number":788,"title":"Optimize ListView","user":{"login":"infosia","id":1661068,"avatar_url":"https://avatars.githubusercontent.com/u/1661068?v=3","gravatar_id":"","url":"https://api.github.com/users/infosia","html_url":"https://github.com/infosia","followers_url":"https://api.github.com/users/infosia/followers","following_url":"https://api.github.com/users/infosia/following{/other_user}","gists_url":"https://api.github.com/users/infosia/gists{/gist_id}","starred_url":"https://api.github.com/users/infosia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infosia/subscriptions","organizations_url":"https://api.github.com/users/infosia/orgs","repos_url":"https://api.github.com/users/infosia/repos","events_url":"https://api.github.com/users/infosia/events{/privacy}","received_events_url":"https://api.github.com/users/infosia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-26T04:49:00Z","updated_at":"2016-07-28T02:05:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/pulls/788","html_url":"https://github.com/appcelerator/titanium_mobile_windows/pull/788","diff_url":"https://github.com/appcelerator/titanium_mobile_windows/pull/788.diff","patch_url":"https://github.com/appcelerator/titanium_mobile_windows/pull/788.patch"},"body":"We have observed that `ListView` is much slower than `TableView`, like 5 times slower. I revisited the code and found out some optimization point, and got ~75% performance improvement (again!)\r\n\r\nSDK 6.0.0.v20160725113651 ... 6,156 msec\r\nSDK 6.0.0.v20160725113651 with this update ... 1,610 msec\r\n\r\n```javascript\r\nvar win = Ti.UI.createWindow({ backgroundColor: 'green' });\r\nvar listView = Ti.UI.createListView();\r\nvar sections = [];\r\n\r\nvar start = +new Date();\r\nvar fruitSection = Ti.UI.createListSection({ headerTitle: 'Fruits' });\r\nvar fruitDataSet = [];\r\nfor (var i = 0; i < 60; i++) {\r\n    fruitDataSet.push({ properties: { title: 'Apple ' + i } });\r\n}\r\nfruitSection.setItems(fruitDataSet);\r\nsections.push(fruitSection);\r\n\r\nlistView.sections = sections;\r\nalert('Elapsed: ' + (+new Date() - start));\r\n\r\nwin.add(listView);\r\nwin.open();\r\n```"},"comment":{"url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/issues/comments/235779203","html_url":"https://github.com/appcelerator/titanium_mobile_windows/pull/788#issuecomment-235779203","issue_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/issues/788","id":235779203,"user":{"login":"infosia","id":1661068,"avatar_url":"https://avatars.githubusercontent.com/u/1661068?v=3","gravatar_id":"","url":"https://api.github.com/users/infosia","html_url":"https://github.com/infosia","followers_url":"https://api.github.com/users/infosia/followers","following_url":"https://api.github.com/users/infosia/following{/other_user}","gists_url":"https://api.github.com/users/infosia/gists{/gist_id}","starred_url":"https://api.github.com/users/infosia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infosia/subscriptions","organizations_url":"https://api.github.com/users/infosia/orgs","repos_url":"https://api.github.com/users/infosia/repos","events_url":"https://api.github.com/users/infosia/events{/privacy}","received_events_url":"https://api.github.com/users/infosia/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T02:05:20Z","updated_at":"2016-07-28T02:05:20Z","body":"test this pelase"}}
{"actor":{"display_login":"infosia"}}