4 ms·
To allocate things on stack you have to either use only value types or use unsafe code. Which is fine for small performance critical sections but will introduce
by DeathArrow 7y ago
To allocate things on stack you have to either use only value types or use unsafe code. Which is fine for small performance critical sections but will introduce bugs and hinder productivity much if used for large code bases.
- pjmlp 7y agoYou no longer need unsafe to stack allocate if using one of the Span types.