xamarin / xamarin-macios

.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
Other
2.48k stars 514 forks source link

[Windows build perf] FindAotCompiler takes too long #19512

Open emaf opened 11 months ago

emaf commented 11 months ago

When building from Windows, FindAotCompiler sometimes takes aroung 10 seconds to calculate the AOT compile path (if the info is not already cached). It is a bit weird because restoring and running a target should not take that long.

For instance, in this log you can see it took 10.272s in total, and remoting a task takes around 200ms, so the executing itself took around 10 seconds:

image

Build Logs

Binlogs.zip

rolfbjarne commented 11 months ago

If you set the FindILLinkKeepKeepTemporaryOutput=true property in the csproj, we'll keep the binlogs from the evaluation on the Mac - can you do that and attach these binlogs? That will hopefully clarify a bit better where the time is spent.