-
Notifications
You must be signed in to change notification settings - Fork 128
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
Linker performance issue with GetCustomDebugInformation #1409
Comments
This causes build performance issues. (dotnet/linker#1409)
Will keep this open as tracking issue for Cecil issue |
This issue is getting problematic when using C# 9.0 source generators, as their symbols and source is getting embedded in the pdbs, making the linker step significantly longer. (/cc @jaredpar who may be interested as this relates to source generation) |
Source generators should observably be no different than just embedding sources during build as it's just embedding a subset of files. |
The origin of the files will not impact, indeed. I'm mentioning this issue as there may be more scenarios coming in the future involving source generation than ones with source link. |
Fixed in jbevain/cecil#684 |
When linking a set of assemblies which contain
Microsoft.SourceLink.GitHub
withEmbedUntrackedSources
enabled, the processing time will increase significantly.Lots of the processing time is spent in
GetCustomDebugInformation
: https://github.com/jbevain/cecil/blob/5e37f44535e0753ff3e4dbdef4ef148ca8bb09e0/Mono.Cecil/AssemblyReader.cs#L3241Here's a stack trace leading to this:
The text was updated successfully, but these errors were encountered: