{ "id": "159944", "key": "AC-3585", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2016-05-10T17:40:27.000+0000", "created": "2016-05-03T01:14:49.000+0000", "labels": [], "versions": [], "issuelinks": [ { "id": "51536", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "154535", "key": "TIMOB-20279", "fields": { "summary": "Android: Ti.Contacts.getAllPeople() crashes with overflow on Android < 6", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-11-11T12:04:47.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." } ], "attachment": [], "flagged": false, "summary": "Android: Ti.Contacts.getAllPeople() has noticeably slow performance", "creator": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "subtasks": [], "reporter": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "environment": null, "comment": { "comments": [ { "id": "384511", "author": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "body": "I suspect the performance issue on Android >= 6 devices might have to do with what is breaking for Android < 6 devices.", "updateAuthor": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-05-03T01:19:56.000+0000", "updated": "2016-05-03T01:19:56.000+0000" }, { "id": "384710", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\nI am able to reproduce this issue with given code and given step. Android device takes almost 7 seconds to process a contact list of 3,000 contacts on the device for the command {{Ti.Contacts.getAllPeople()}}.\r\n*Steps:*\r\n1. Create a dummy csv file of contacts from this [link|http://www.convertcsv.com/generate-test-data.htm].\r\n2. Import the contact list on Android device.\r\n3. Create a default classic project with following code.\r\n{code}\r\nvar win1=Titanium.UI.createWindow({\r\n\ttitle:'Tab 1',backgroundColor:'#fff'\r\n});\r\nvar label=Ti.UI.createLabel({\r\n\tcolor:'blue',text:'Get Contacts',top:30,width:300,height:200\r\n});\r\nwin1.add(label);\r\nwin1.open();\r\nlabel.addEventListener(\"click\", function(e) {\r\n\tvar contactsAuthorizationValue=Ti.Contacts.getContactsAuthorization();\r\n\t\r\n\tif(contactsAuthorizationValue===Ti.Contacts.AUTHORIZATION_AUTHORIZED) {\r\n\t\tTi.API.log(\"starting to take contacts\");\r\n\t\tvar rawContacts=Ti.Contacts.getAllPeople();\r\n\t\tTi.API.log(\"Done\");\r\n\t}\r\n});\r\n\r\n{code}\r\n4. Build and run the app on android device.\r\n5. Click the label. >> In console log it comes \"starting to take contacts\" and after almost 7 seconds comes the log \"Done\".\r\n\r\n\r\n Thanks \r\n\r\n*Environment*:\r\n\r\n*Device info:* HTC One (Android 4.4.3)\r\n*Node.js Version:* 0.12.7\r\n*npm Version:* 2.11.3\r\n*Titanium SDKs:* 5.2.2.GA and 5.2.1.GA\r\n*Java Development Kit Version:* 1.8.0_73\r\n*Titanium CLI Version:* 5.0.5\r\n*Appcelerator CLI Version:* 5.2.2\r\n*Appcelerator Studio:* 4.5.0", "updateAuthor": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-05-04T12:01:32.000+0000", "updated": "2016-05-04T12:01:32.000+0000" }, { "id": "385311", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-05-10T17:39:17.000+0000", "updated": "2016-05-10T17:39:17.000+0000" }, { "id": "443477", "author": { "name": "saidCh", "key": "saidch", "displayName": "said chaouche", "active": true, "timeZone": "Africa/Algiers" }, "body": "Hi, \r\nthe problem is still here on SDK 7.4.x and 7.5.x, Ti.Contacts.getAllPeople() take more than 7 seconde to read 4000 contacts\r\nAny workaround to fix the bug\r\n\r\nThank's", "updateAuthor": { "name": "saidCh", "key": "saidch", "displayName": "said chaouche", "active": true, "timeZone": "Africa/Algiers" }, "created": "2018-11-11T12:01:04.000+0000", "updated": "2018-11-11T12:01:04.000+0000" }, { "id": "443478", "author": { "name": "saidCh", "key": "saidch", "displayName": "said chaouche", "active": true, "timeZone": "Africa/Algiers" }, "body": "is not a duplicate TIMOB-20279, its a problème of latency ", "updateAuthor": { "name": "saidCh", "key": "saidch", "displayName": "said chaouche", "active": true, "timeZone": "Africa/Algiers" }, "created": "2018-11-11T12:04:47.000+0000", "updated": "2018-11-11T12:04:47.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }