Skip to content

GatherTaskItemOutputs is expensive, immutable COW 🐄 #11895

@KirillOsenkov

Description

@KirillOsenkov

GatherTaskItemOutputs() keeps showing up on profiles, specifically SetMetadata, SetMetadataOnTaskOutput, COW 🐄 dictionary ImportProperties, etc.

I see lots of Linq, lots of allocations, for something that potentially should be very cheap. If the list of key value pairs is immutable, just pass it through (I think?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions