Skip to content

Faster Diagnostics Activity ID generation from random bytes #46818

Closed
@alnikola

Description

@alnikola

Diagnostics.Activitiy.Start method currently calls Guid.NewGuid to generate a new activity ID. However, GUID generation seems to work pretty slow on Linux, thus it's proposed to replace it with some random number generation (e.g. Random.Next()) which seems to work much faster.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions