Reduce heap allocations in ResolverUtility.FindLibraryByVersionAsync #11409
Labels
Area:Analyzers
Category:Quality Week
Issues that should be considered for quality week
PerfWins
Tenet:Performance
Performance issues
Type:Bug
Milestone
@kartheekp-ms commented on Tue Nov 23 2021
While working on https://github.com/nuget/client.engineering/issues/1057 issue, I noticed that
ResolverUtility.FindLibraryByVersionAsync
method https://github.com/NuGet/NuGet.Client/blob/a8b6b1fb3a1bccd207a83612cd0f5e1f4ff1d0b8/src/NuGet.Core/NuGet.DependencyResolver.Core/ResolverUtility.cs#L363 has following warnings reported by thePerformanceSensitive
analyzers.This method has ~880 MB allocations during solution restore for OrchardCore solution https://github.com/OrchardCMS/OrchardCore/tree/75923732c36d2785cb869affb805f0ff19d1847c
The text was updated successfully, but these errors were encountered: