Bug 43350 - Unpack library resources slow when running through Visual studio compared to mac
Summary: Unpack library resources slow when running through Visual studio compared to mac
Status: RESOLVED ANSWERED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.1.2 (C7SR1)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-08-15 14:24 UTC by FieldstrikeMobile
Modified: 2016-08-26 16:37 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description FieldstrikeMobile 2016-08-15 14:24:31 UTC
I am running Xamarin extension for visual studio V4.1.2 on my windows machine, connecting to a Macbook pro Late 2011.

When I run a clean build on my windows machine to an ios device it takes 7 minutes.
2 minutes taken up by the task "UnpackLibraryResources"

When I run a clean build on my mac using Xamarin Studio for mac it takes 5 minutes
the "unpackLibraryResources" task takes less than 1 second.


I have uploaded the logs of both machines. With such disparity this has got to be a bug?
Comment 1 FieldstrikeMobile 2016-08-15 14:28:26 UTC
ios build from VS
http://www.filedropper.com/vs-iosbuild

ios build from mac
http://www.filedropper.com/mac-iosbuild
Comment 2 Adrian Alonso 2016-08-18 18:15:45 UTC
This is expected when the UnpackLibraryResources has to copy large files to the Mac server. In the provided logs you can check that the 2 mins diff is because of that:

8>  UnpackLibraryResources: 2016-08-15T12:54:44.7120320+01:00 - Copying files (8 files) (TaskId:458)
8>  UnpackLibraryResources: 2016-08-15T12:56:41.4013760+01:00 - Serializing intputs (TaskId:458)

Of course, you don't have this overhead when building locally in the mac. After the full build, the incremental builds should not add this extra time.
Comment 3 FieldstrikeMobile 2016-08-26 16:37:03 UTC
@adrian Alonso.

2 minutes seems like a very long time to copy 8 files across a local network.

the 8 files amount to around 30mb. So I still can't understand what is taking the time