{ "id": "172115", "key": "TIMOB-26331", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-10-04T02:03:52.000+0000", "created": "2018-08-23T03:21:45.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-10-08T09:48:51.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Building/launching apps via CLI is much slower than Visual Studio.\r\n\r\nI suspect, Titanium Windows CLI is slower because we usually launch external tools (.exe) in order to get information/build/launch projects and then read/parse standard outputs/errors to get the results. I would expect Visual Studio doesn't do such a thing but uses public/private API to deal with them such as MSBuild API. \r\n", "attachment": [ { "id": "65468", "filename": "36292AF6-868B-455C-89BA-65F361FAEE9E.png", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-08-23T03:21:23.000+0000", "size": 247646, "mimeType": "image/png" } ], "flagged": false, "summary": "Windows: Improve build/launch time via Titanium CLI", "creator": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1073, "state": "closed", "name": "2018 Sprint 19 SDK", "startDate": "2018-09-09T21:02:56.422Z", "endDate": "2018-09-23T21:02:00.000Z", "completeDate": "2018-09-23T22:28:10.932Z", "originBoardId": 114 }, { "id": 1078, "state": "closed", "name": "2018 Sprint 20 SDK", "startDate": "2018-09-23T16:57:58.349Z", "endDate": "2018-10-07T16:57:00.000Z", "completeDate": "2018-10-07T23:31:40.476Z", "originBoardId": 114 }, { "id": 1065, "state": "closed", "name": "2016 Sprint 17 SDK", "startDate": "2018-08-13T17:39:36.846Z", "endDate": "2018-08-27T17:39:00.000Z", "completeDate": "2018-08-29T16:10:57.013Z", "originBoardId": 114 }, { "id": 1070, "state": "closed", "name": "2018 Sprint 18 SDK", "startDate": "2018-08-26T16:14:35.297Z", "endDate": "2018-09-09T16:14:00.000Z", "completeDate": "2018-09-11T20:59:21.495Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "441428", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1282\r\n\r\nh2. Things that work\r\n\r\n- Reduced re-build time on device by stopping unnecessary clean build \r\n- Reduced development build (local/device) time by stopping unnecessary bundle package\r\n- Reduced build time by stopping unnecessary `cmake` invocation from `msbuild`\r\n- Reduced build time by stopping unnecessary compilation for C++ files\r\n\r\nOverall this reduces 15-30 seconds build/launch time (40~% improvement).\r\n\r\nh2. Things that do not work\r\n\r\n- Moving to native [MSBuild API|https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild-api?view=vs-2017] instead of invoking `msbuild` command does not quite work to reduce build time.\r\n- Moving to native [package deployment API|https://docs.microsoft.com/en-us/windows/desktop/appxpkg/package-deployment-api] instead of invoking `WinAppDeployCmd` command does not quite work to reduce deployment time.\r\n\r\nh2. Another solution regarding development \"productivity\"\r\n\r\nI would suggest leveraging `liveview` rather than recompiling projects in order to improve development productivity. I even expect it works faster than Visual Studio to preview your changes!\r\n\r\nh2. CLEAN BUILD\r\n\r\nh3. BEFORE\r\n\r\n{code}\r\n[INFO] Project built successfully in 1m 9s 450ms\r\n[INFO] Finished launching the application in 1m 27s 387ms\r\n{code}\r\n\r\nh3. AFTER\r\n\r\n{code}\r\n[INFO] Project built successfully in 55s 204ms\r\n[INFO] Finished launching the application in 1m 10s 142ms\r\n{code}\r\n\r\nh2. REBUILD\r\n\r\nh3. BEFORE\r\n\r\n{code}\r\n[INFO] Project built successfully in 47s 360ms\r\n[INFO] Finished launching the application in 1m 8s 970ms\r\n{code}\r\n\r\nh3. AFTER\r\n\r\n{code}\r\n[INFO] Project built successfully in 27s 715ms\r\n[INFO] Finished launching the application in 40s 950ms\r\n{code}\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-09-10T01:11:58.000+0000", "updated": "2018-09-10T01:12:41.000+0000" }, { "id": "442249", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR has passed, waiting on Jenkins. ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-03T10:31:13.000+0000", "updated": "2018-10-03T10:31:13.000+0000" }, { "id": "442393", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket, Verified fix in SDK Version {{7.5.0.v20181005164109}}\r\n\r\nTest and other information can be found at:\r\nhttps://github.com/appcelerator/titanium_mobile_windows/pull/1282\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-08T09:46:23.000+0000", "updated": "2018-10-08T09:46:23.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }