{ "id": "89946", "key": "TIMOB-8708", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14700", "description": "2012 Sprint 25", "name": "2012 Sprint 25", "archived": true, "released": true, "releaseDate": "2012-12-17" }, { "id": "14784", "description": "2012 Sprint 25 API", "name": "2012 Sprint 25 API", "archived": true, "released": true, "releaseDate": "2012-12-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-12-14T22:20:55.000+0000", "created": "2012-04-12T16:32:34.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam", "api", "insight" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T00:10:35.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "It takes long to load contacts with images from the phone book. If I remove the imageView from the row the contacts (with no image) loads faster. It slows down the application incase the contacts are large in number. I've tested it for 20 contacts. Loading contacts with image takes 1 second (1000 milliseconds) and without image it takes 300 milliseconds\r\nh4. Repo Steps\r\n1. Run the attached app.js file.\r\n2. Check the DDMS for the timer values. \r\n3. Comment the imageView .\r\n4. Run the app again and check the DDMS for the timer values (without image)", "attachment": [ { "id": "27011", "filename": "app.js", "author": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-12T16:32:34.000+0000", "size": 2122, "mimeType": "text/javascript" } ], "flagged": false, "summary": "Android: Loading a large list of contacts w/ photos is slow", "creator": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "HTC sensation 4G\r\nandroid 2.3.3\r\nTi SDK 2.0.X", "comment": { "comments": [ { "id": "230462", "author": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull request https://github.com/appcelerator/titanium_mobile/pull/3557\r\n\r\nThe expensive part of loading the contents was calling compress() to output\r\nthe images as PNG files. With the change here, the images are now output\r\nas JPEG files. It's quite likely that the images from the database are in\r\nJPEG format, and it makes sense that it would be expensive to convert those\r\nimages to PNG.\r\n\r\nMy test case has 121 contacts with photos. Prior to the change it took \r\n15.6 seconds to load, after the change it loads in 3.6 seconds.\r\n", "updateAuthor": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-07T22:30:19.000+0000", "updated": "2012-12-07T23:34:11.000+0000" }, { "id": "414691", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T00:10:35.000+0000", "updated": "2017-03-22T00:10:35.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }