-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Do not allocate in TaskItem.GetHashCode #2267
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if any other places are doing this as well
While I didn't search MSBuild's code base - I did look for every GetHashCode that allocated enough to hit PerfView's threshold, and either fixed them or filed them. There were no more MSBuild ones. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What a nice fix.
@rainersigwald @jeffkl Can one you merge this in? I don't have permissions. |
This was causing about 0.3% of allocations (12 MB) of a particular scenario installing NuGet packages.
Looks like the Ubuntu build is failing due to a timeout, unsure if this introduced it? |
@dotnet-bot test Ubuntu16.04 Build for CoreCLR please It passed on your change before, so I don't think it's related. |
Thanks @rainersigwald! |
This was causing about 0.3% of allocations (12 MB) of a particular scenario installing NuGet packages.