{ "id": "160148", "key": "TIMOB-23351", "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": [], "resolution": null, "resolutiondate": null, "created": "2016-05-10T10:11:03.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "17707", "name": "Release 5.3.0", "archived": false, "released": true, "releaseDate": "2016-06-04" } ], "issuelinks": [ { "id": "52551", "type": { "id": "10011", "name": "Includes", "inward": "is included by", "outward": "includes" }, "outwardIssue": { "id": "162847", "key": "TIMOB-23834", "fields": { "summary": "Windows: Optimize windowslib usage", "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": "None", "id": "6" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-09-13T14:29:44.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Windows builds can take some time, we should try to reduce this time as much as possible. There are a few things we can do to achieve this.\r\n\r\n- During the build and installation process {{wptool.exe}} is executed a number of times in order to detect Windows devices. This is a time expensive process and also happens during desktop builds, which is unnecessary. We can combat this by caching the first results and re-use them (this is partially implemented already).\r\n\r\n- When building apps that have previously been built, the build project is deleted and re-created again. Which also means a complete build is required again. This can be avoided by retaining the existing project and old copy over changes that have been made. Requiring only a partial rebuild.\r\n\r\n- If the app already exists on the phone, we should attempt to make use of the {{update}} command in the deploy tool. This should be must faster than the two step process of {{uninstall}} and {{install}}.", "attachment": [], "flagged": false, "summary": "Windows: Improve build and install time", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": null, "comment": { "comments": [ { "id": "396010", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "This is a smallish saving that could be made, I just used [console.time and console.timeEnd|https://nodejs.org/api/console.html#console_console_time_label] to check how long it takes to copy the files back to the original build dir, and it seems to be around 2.5 seconds. This is on a Macbook Pro retina with an ssd, so I imagine a traditional hdd will be even slower. From reading the code it seems like this is blocking so the build process will wait for this to complete before moving on\r\n\r\n{code}\r\n[INFO] Copying results back to project build directory\r\ncopied\r\ncopystuff: 2516ms\r\n[INFO] Project built successfully in 45s 523ms\r\n{code}", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-09-13T14:29:44.000+0000", "updated": "2016-09-13T14:29:44.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }