Skip to content

Avoid state object enumerator allocation #278

@AndreReise

Description

@AndreReise

While using MEL logging, the state object is commonly either FormattedLogValues or LogValues. These types are private structs and implement the IReadOnlyCollection interface. So, there is no way to easily avoid boxing, but we can save enumerator object allocation by using a for-loop instead of foreach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions