If the mutable struct doesn’t escape, it will generally be stack allocated as well.
This is not true of Arrays, however.
3 Likes
If the mutable struct doesn’t escape, it will generally be stack allocated as well.
This is not true of Arrays, however.