|
|
|
|
|
by kgeist
1685 days ago
|
|
>Not just at scale, Go doesn't make it obvious when an allocation is on the heap or stack. The escape analysis can change I thought heap allocations are only triggered by taking pointers, i.e. using reference semantics (including casting to interface and calling a method whose receiver is by-ref)? If I'm careful to only use variables by-value (for types that can afford it, i.e. excluding map/array), what else can trigger heap allocation? |
|