11 ms·
Does go’s defer allocate on the heap? I thought it would only do that if necessary.
by klodolph 2y ago
Does go’s defer allocate on the heap? I thought it would only do that if necessary.
- pkaye 2y agoI know they implemented an optimization back in go 1.13. Not sure if that will help. https://github.com/golang/proposal/blob/master/design/34481-opencoded-defers.md https://github.com/golang/proposal/blob/master/design/34481-...