From 6514e7723b7e9988e9d468cda1bfc28ded9a33f9 Mon Sep 17 00:00:00 2001 From: Hristo Deshev Date: Mon, 14 Sep 2015 16:29:59 +0300 Subject: [PATCH 1/2] Don't prepare platform N times if N files have been changed. Move platform preparation out of beforeBatchLiveSyncAction and call it once before processing changed files. --- lib/services/usb-livesync-service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/services/usb-livesync-service.ts b/lib/services/usb-livesync-service.ts index e7eda28584..b1d08767e5 100644 --- a/lib/services/usb-livesync-service.ts +++ b/lib/services/usb-livesync-service.ts @@ -78,7 +78,6 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer let beforeBatchLiveSyncAction = (filePath: string): IFuture => { return (() => { - this.$platformService.preparePlatform(platform).wait(); let projectFileInfo = this.getProjectFileInfo(filePath); return path.join(projectFilesPath, path.relative(path.join(this.$projectData.projectDir, constants.APP_FOLDER_NAME), projectFileInfo.onDeviceName)); }).future()(); @@ -113,6 +112,9 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer }).future()(); } + protected preparePlatformForSync(platform: string) { + this.$platformService.preparePlatform(platform).wait(); + } private resolveUsbLiveSyncService(platform: string, device: Mobile.IDevice): IPlatformSpecificUsbLiveSyncService { let platformSpecificUsbLiveSyncService: IPlatformSpecificUsbLiveSyncService = null; if(platform.toLowerCase() === "android") { From 55a496250dfe51c83dae10edd4baee2a73741dee Mon Sep 17 00:00:00 2001 From: Hristo Deshev Date: Wed, 16 Sep 2015 18:17:27 +0300 Subject: [PATCH 2/2] Update lib/common submodule --- lib/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common b/lib/common index a13a42f84e..01c4b6bef6 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit a13a42f84e959df8315b821c9102fabbdb0424e9 +Subproject commit 01c4b6bef64a5629cd630f72e0da5cbe9a354893