Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dotnet] Ask the linker to not mark copied assemblies if we're in a 'don't link' scenario. #14011

Merged

Conversation

rolfbjarne
Copy link
Member

@rolfbjarne rolfbjarne commented Feb 1, 2022

This speeds up builds significantly when the linker is disabled.

Test case: building tests/dotnet/MySimpleApp for macOS.

  • Before: 37s
  • After: 9s
  • Difference: 26s (4x faster)

Test case: run the .NET tests

  • Before: 2h55
  • After: 1h43
  • Difference: 1h12 (1.7x faster)

Contributes towards #10251.
Ref: dotnet/linker#2089

…don't link' scenario.

This speeds up builds significantly when the linker is disabled.

Test case: building tests/dotnet/MySimpleApp builds for macOS.

* Before: 37s
* After: 9s
* Difference: 26s (4x faster)
@rolfbjarne rolfbjarne added not-notes-worthy Ignore for release notes run-dotnet-tests Run all the .NET tests labels Feb 1, 2022
Copy link
Member

@dalexsoto dalexsoto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wohoo!

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [PR Build] Tests passed on Build. ✅

Tests passed on Build.

API diff

✅ API Diff from stable

View API diff
View dotnet API diff
View dotnet legacy API diff
View dotnet iOS-MacCatalayst API diff

API Current PR diff

ℹ️ API Diff (from PR only) (please review changes)

View API diff
View dotnet API diff
View dotnet legacy API diff
View dotnet iOS-MacCatalayst API diff

Generator diff

ℹ️ Generator Diff (please review changes)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

🎉 All 146 tests passed 🎉

Pipeline on Agent XAMMINI-061.BigSur'
Merge 44ceb9b into c171b6f

@rolfbjarne rolfbjarne merged commit 68aaef9 into xamarin:main Feb 2, 2022
@rolfbjarne rolfbjarne deleted the dotnet-linker-dontlink-improvement branch February 2, 2022 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-notes-worthy Ignore for release notes run-dotnet-tests Run all the .NET tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants