Reduce Task ContingentProperties heap allocations

Description

When a Task is started using Task.Run or Task.StartNew, the current ExcecutionContext is flowed to that task. To do so it allocates object arrays to store the information on the Task. In cases where we don't need the ExecutionContext (i.e. AsyncState<T> or SynchronizationContext) to flow we can improve performance by disabling this feature.

Environment

None

Gerrit Reviews

None

Release Notes Description

None

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Components

Fix versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created December 8, 2020 at 6:54 PM
Updated December 9, 2020 at 1:23 PM
Resolved December 9, 2020 at 1:23 PM
Instabug