{ "id": "76559", "key": "TIMOB-4457", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "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": "11357", "description": "Mobile 1.8.0 M04", "name": "Sprint 2011-25", "archived": true, "released": true, "releaseDate": "2011-06-27" }, { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-06-28T09:52:40.000+0000", "created": "2011-06-20T08:55:00.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "performance" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-08T23:41:15.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "We have some evidence that creating views with properties are inordinately slow. ", "attachment": [], "flagged": false, "summary": "Eliminate performance bottlenecks in creating views with properties", "creator": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "157253", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "For better testing, included is a minimal test harness:\r\n{code}\r\nvar startTime = Date.now();\r\nfor(i=0;i<10000;i++)\r\n{\r\nvar temp=Ti.UI.createView();\r\n}\r\nvar endTime = Date.now();\r\n//Modify line 4 as needed. Because of the nature of javascript, you MUST\r\n//run each test as an independant launch; running tests sequentially will\r\n//unnecessairly burden the later tests with the memory cleanup for previous\r\n//tests.\r\nvar delta = endTime - startTime;\r\nTi.API.debug('our delta is '+delta);\r\n{code}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-20T19:32:21.000+0000", "updated": "2011-06-20T19:32:21.000+0000" }, { "id": "157286", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test was done with 1000 iterations on an iPod 3, iOS 4.0.2.\r\nThere was 5 tests each to get a peek at the std deviation.\r\nEach test was a separate launch of the application to remove memory issues as being a factor.\r\n* var temp=Ti.UI.createView();\r\n** 745, 714, 718, 715, 715\r\n** Mean: 721.4 SD: 13.2778\r\n* var temp=Ti.UI.createView({left:10,top:50});\r\n** 1169, 1184, 1186, 1200, 1178\r\n** Mean: 1183.4 SD: 11.39298\r\n* var temp=Ti.UI.createView({});\r\n** 912, 926, 923, 917, 909\r\n** Mean: 917.4, SD: 7.1624\r\n* var temp=Ti.UI.createView(); var other = {left:10,top:50};\r\n** 709, 732, 730, 715, 717\r\n** Mean: 720.6 SD: 9.96494\r\n* var other = {left:10,top:50};\r\n** 1 //Less than the margin of error; ignoring.\r\n* var temp = funct(); //With funct defined as Ti.UI.createView, to remove the lookup cost\r\n** 557, 556, 562, 556, 562\r\n** Mean: 558.6 SD: 3.1305\r\n* var temp = funct({left:10,top:50});\r\n** 1020, 1009, 1033, 1022, 1016\r\n** Mean: 1020 SD: 8.80341\r\n* var temp = funct({});\r\n** 763, 760, 758, 761, 759\r\n** Mean: 760.2 SD: 1.92354\r\n* var temp=Ti.UI.createView(); //funct was defined, but Ti.UI.createView was tested to determine if caching was significant.\r\n** 719 //Deemed insignificant.\r\n", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-21T11:04:42.000+0000", "updated": "2011-06-21T11:23:30.000+0000" }, { "id": "157885", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Assisted QE with validation. Merged pull request.", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-27T16:01:24.000+0000", "updated": "2011-06-27T16:01:24.000+0000" }, { "id": "157931", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Required to merge to 1.7.2.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-28T09:42:07.000+0000", "updated": "2011-06-28T09:42:07.000+0000" }, { "id": "157935", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Merged to 1.7.x", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-28T09:52:40.000+0000", "updated": "2011-06-28T09:52:40.000+0000" }, { "id": "409997", "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-08T23:41:15.000+0000", "updated": "2017-03-08T23:41:15.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }