{ "id": "107781", "key": "AC-2305", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2013-02-04T23:42:55.000+0000", "created": "2013-01-14T04:50:45.000+0000", "labels": [ "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41:19.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "*Problem description*\r\nWhen I'm trying to call:\r\n{code}\r\nTitanium.UI.Picker.add(Titanium.UI.PickerRow[])\r\n{code}\r\nWith a list of my simple items I got these results on FireFox 18 with Core i5 3.2GHz:\r\n\r\nAdding 50 rows time: 1.045seconds\r\nAdding 100 rows time: 4.017seconds\r\nAdding 200 rows time: 19.738seconds\r\n\r\nOn mobile devices it's much much slower...\r\n\r\n*Workaround*\r\n1. Add new method to PickerColumn to add list of columns at once. (or add this ability to \"add\" method)\r\n2. Add new method to PickerRow to add list of rows at once. (or add this ability to \"add\" method)\r\n3, Use this methods in \\Ti\\UI\\Picker.js \"add\" function instead this part \r\n{code}if (is(value,\"Array\")) {for (var i in value) {this.add(value[i]);}}{code}", "attachment": [ { "id": "34710", "filename": "test.js", "author": { "name": "stanislav fedorenko (gl)", "key": "stanislav fedorenko (gl)", "displayName": "Stanislav Fedorenko", "active": true, "timeZone": "Europe/Helsinki" }, "created": "2013-01-14T04:50:45.000+0000", "size": 18186, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "MobileWeb: Picker \"add\" method is dead slow", "creator": { "name": "stanislav fedorenko (gl)", "key": "stanislav fedorenko (gl)", "displayName": "Stanislav Fedorenko", "active": true, "timeZone": "Europe/Helsinki" }, "subtasks": [], "reporter": { "name": "stanislav fedorenko (gl)", "key": "stanislav fedorenko (gl)", "displayName": "Stanislav Fedorenko", "active": true, "timeZone": "Europe/Helsinki" }, "environment": "FireFox 18 on Core i5 3.2GHz", "comment": { "comments": [ { "id": "237139", "author": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Stanislav: I have tested this and received load times of around 5 seconds, could you use a loading screen, as loading this many records at a time is likely to receive significant slow down", "updateAuthor": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-04T23:41:49.000+0000", "updated": "2013-02-04T23:41:49.000+0000" }, { "id": "239217", "author": { "name": "ypidstryhach_gl", "key": "ypidstryhach_gl", "displayName": "Yaroslav Pidstryhach", "active": true, "timeZone": "Europe/Helsinki" }, "body": "Jamie, on what device did you get 5 seconds? Was it a mobile device?\nAlso, in your opinion, isn't even 5 seconds too slow for 200 rows?", "updateAuthor": { "name": "ypidstryhach_gl", "key": "ypidstryhach_gl", "displayName": "Yaroslav Pidstryhach", "active": true, "timeZone": "Europe/Helsinki" }, "created": "2013-02-21T10:56:57.000+0000", "updated": "2013-02-21T10:56:57.000+0000" }, { "id": "239338", "author": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I tested it on multiple browsers as well as on both android and iOS simulators and a Asus transformer infinity. When loading 200 rows of data it should be expected to take a small amount of time", "updateAuthor": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-21T23:38:08.000+0000", "updated": "2013-02-21T23:38:08.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }