Skip to content

Improve performance of ASP.NET Core with logging on  #9594

@davidfowl

Description

@davidfowl

With the default settings and a hello world middleware, we go from 0 allocations to ~12 (some objects are pretty large as well). The following is a memory profile of 10,000 requests with logging turned on at the "Warning" level:

image

cc @benaadams @noahfalk

Metadata

Metadata

Assignees

No one assigned

    Labels

    Perfaffected-mediumThis issue impacts approximately half of our customersarea-hostingIncludes Hostingarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneseverity-minorThis label is used by an internal tool

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions