Skip to content

Perf: Investigate applying SkipLocalsInitAttribute #26586

Open
@JamesNK

Description

@JamesNK

[SkipLocalsInit] can be used to improve performance - https://github.com/dotnet/roslyn/blob/master/docs/features/skiplocalsinit.md

Runtime applies this attribute on all their assemblies for 5.0 - https://github.com/dotnet/runtime/search?q=SkipLocalsInit

We should investigate whether there are performance gains in dotnet/aspnetcore, and if there are side effects when using the optimization. There are potential safety implications to not initializing locals to zero.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Perfaffected-very-fewThis issue impacts very few customersarea-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-nice-to-haveThis label is used by an internal tool

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions