Difference between revisions of "Thread:Talk:Wave Surfing/GoTo Surfing/Comparing GoTo Surfing and True Surfing?/reply (14)"
Jump to navigation
Jump to search
Skilgannon (talk | contribs) m (Reply to Comparing GoTo Surfing with True Surfing?) |
(No difference)
|
Latest revision as of 21:34, 2 September 2017
My thought are, why take the risk? Making an allocation pool or hoisting the allocation outside of the loop for frequently created/deleted objects is fairly easy. Also less pressure on the GC will make a GC run during your tick less likely, so you are less likely to skip turns. Stack analysis is good, but I'm not sure how it deals with nested objects. I suspect there is still a heap allocation internally, which can be hoisted out of most loops quite easily.