{ "id": "106040", "key": "TIMOB-11976", "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": [], "resolution": null, "resolutiondate": null, "created": "2012-12-06T01:52:56.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:16.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "See TIMOB-11282 for the test case here.\r\n\r\nThere is additional room for optimization over what was done in\r\nthat ticket. \r\n\r\nCaching the resized images would be of benefit -- they are not\r\ncurrently cached, and resized by AsyncTasks as needed.\r\nIn the cace of TIMOB-11282 the resized images were only a few K \r\nbytes each, and they all would have fit into a fairly small cache\r\n(under 100 KB in that case). It's probably best to pick a \r\nmaximum cache size and manage by the bytes used in the cache.\r\n\r\nThe images retrieved from the internet are cached in the full size,\r\nthen later on they are resized as needed. That cache is shared with\r\nother components, so it can be kept and another layer of caching for\r\nthe resized images can be added on top of it.\r\n\r\nIt's possible that a better use of threads can be made in image handling.\r\nThe UI thread may still be doing more work than needed right now. The\r\npath through the other various AsyncTasks and threads may not be as\r\nefficient as it could be.\r\n\r\nIf the work done on this ticket does not resolve the issue completely,\r\nplease create another Jira ticket with remaining work items listed.\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: More performance optimizations for image handling", "creator": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Any Android system. \r\n\r\nThe \"slowness\" problem in TIMOB-11282 shows up worst on the emulator.", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }