Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Don't set AsyncLocal for scope if not included #714

@benaadams

Description

@benaadams

Adding ConsoleLogger disturbs the ExecutionContext even if scopes aren't being used and causes allocations to wildly increase.

Without ConsoleLogger (no-changes to AsyncLocal)

With ConsoleLogger and no scopes - but not logging anything to Console (changes to AsyncLocal)

You can see the allocations of Action and MoveNextRunner disproportionately increase

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions