Skip to content

Peer should impliment IEquatable<T> interface.  #40

@rybakatchya

Description

@rybakatchya

Right now if you have peer in a list and call List.Contains(Peer) it will cause GC allocations. Implementing IEquatable on the Peer struct will resolve this issue. See https://medium.com/@semuserable/c-journey-into-struct-equality-comparison-deep-dive-9693f74562f1

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions