Use stackalloc for multiple instances of arrays of constant size #22616
Unanswered
Mrnikbobjeff
asked this question in
Ideas
Replies: 1 comment
-
Why don't you simply create a PR for it? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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
Beta Was this translation helpful? Give feedback.
All reactions