Skip to content

Conversation

@IAmTheCShark
Copy link

@IAmTheCShark IAmTheCShark commented Oct 14, 2025

Description

Calling Equals produces alot of memory traffic through boxing the struct as object.
MemoryTraffic Dependent

Customer Impact

Higher memory consumption and more cpu load through GC

Testing

Made sure the correct Equals method gets called

Risk

Low

Microsoft Reviewers: Open in CodeFlow

@dotnet-policy-service dotnet-policy-service bot added PR metadata: Label to tag PRs, to facilitate with triage Community Contribution A label for all community Contributions labels Oct 14, 2025
@IAmTheCShark IAmTheCShark marked this pull request as ready for review October 14, 2025 09:32
@IAmTheCShark IAmTheCShark requested a review from a team as a code owner October 14, 2025 09:32
Copy link
Member

@h3xds1nz h3xds1nz left a comment

Choose a reason for hiding this comment

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

This was on my list; it can indeed generate a lot of unnecessary allocations in many applications, great job.

@lindexi
Copy link
Member

lindexi commented Oct 15, 2025

LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community Contribution A label for all community Contributions PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants