Re:Copying data is wasteful, mutating data is dangerous
by jen20 on Thursday January 09, 2020 @04:20PM
(#22005905)
The CLR also allows stack allocation, and many of the newer .NET Core libraries have been built with a focus on eliminating unnecessary allocations.
Re:Copying data is wasteful, mutating data is dangerous
by WorldMaker on Friday January 10, 2020 @04:58PM
(#22016052)
Some of the biggest of .NET Core's advances in stack allocation (and resulting performance boosts) likely won't make it into Unity until around the release of .NET 5, though. It should be interesting to see how Unity adapts when the tools show up.
Golang still uses one global heap; it just allows for stack based allocation in situations it can do it (avoiding putting stuff on the global heap), so copies _can_ be cheap re: GC.