Skip to content

add a lookup table to TaskExecutionHost.cs #12056

@SimaTian

Description

@SimaTian

During a review discussion for PR that optimizes TaskExecutionHost
We've come to conclusion that it is a step in a good direction, however there is a further improvement to be had: #11959 (comment)

We can skip string key = "DisableLogTaskParameter_" + _taskName + "_" + parameter.Name; which allocates by instead building a lookup table when we have the available set of tasks and parameter names and then fetching the strings from there.

Task:
build said lookup table to lower the allocations on the hot path further.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions