by jharsman · 14y ago · 0 comments
This is obviously faster than malloc which is what people compare with when they say allocation is faster with a garbage collector. Collecting the garbage, i.e. de-allocation, can be more expensive though, since it might require scanning large parts of the heap.
Since games generally use region based allocators , the performance gain is probably very small there. If you make lots of calls to malloc, then the gain would be larger.
If you care about performance you will avoid the garbage collector like the plague. Best to write it in C, C++, etc.
Seriously, if you want cheap allocations use a freaking allocation pool. They're not that hard to implement in C++.