Perf: Investigate applying SkipLocalsInitAttribute
Open
affected-very-few
area-networking
enhancement
Perf
severity-nice-to-have
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 290
Description
`[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.
Contributor guide
Assessment
This issue has not been assessed yet.