Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use stackalloc for multiple instances of arrays of constant size #22600

Closed
Mrnikbobjeff opened this issue May 23, 2024 · 0 comments
Closed

Use stackalloc for multiple instances of arrays of constant size #22600

Mrnikbobjeff opened this issue May 23, 2024 · 0 comments

Comments

@Mrnikbobjeff
Copy link
Contributor

Mrnikbobjeff commented May 23, 2024

Description

Referencing #11846
searching for 'new char[' / 'new int[' reveals several instances where we allocate tiny temporary char arrays on the heap instead of stackallocing them.
This search reveals multiple simple optimizable instances.

Public API Changes

None

Intended Use-Case

Removing unnecessary allocations

@dotnet dotnet locked and limited conversation to collaborators May 23, 2024
@PureWeen PureWeen converted this issue into discussion #22616 May 23, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

1 participant