Skip to content

Use stack-allocated/inline arrays with fixed lengths in more places#10320

Open
h3xds1nz wants to merge 2 commits intodotnet:mainfrom
h3xds1nz:more-span
Open

Use stack-allocated/inline arrays with fixed lengths in more places#10320
h3xds1nz wants to merge 2 commits intodotnet:mainfrom
h3xds1nz:more-span

Conversation

@h3xds1nz
Copy link
Member

@h3xds1nz h3xds1nz commented Jan 21, 2025

Description

Finding a few more places that are just low hanging fruit to swap from heap-allocated arrays to stack-allocated/inline-arrays.

Customer Impact

Improved performance, decreased allocations.

Regression

No.

Testing

Local build.

Risk

Low, the swaps are pretty much 1:1.

Microsoft Reviewers: Open in CodeFlow

@h3xds1nz h3xds1nz requested review from a team as code owners January 21, 2025 21:28
@dotnet-policy-service dotnet-policy-service bot added PR metadata: Label to tag PRs, to facilitate with triage Community Contribution A label for all community Contributions labels Jan 21, 2025
@h3xds1nz h3xds1nz changed the title Use stack-allocated/inline arrays with fixed lengths in more spaces Use stack-allocated/inline arrays with fixed lengths in more places Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community Contribution A label for all community Contributions PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant