3 ms·
No, there's a difference. Profiling will often show you where you're doing allocations or calling code that does allocations in the most often used code. Prof
by kristianp 8y ago
No, there's a difference. Profiling will often show you where you're doing allocations or calling code that does allocations in the most often used code. Profiling shows where to reduce those allocations to get the biggest improvements. When making the changes, you don't try to reduce escapes, you reduce allocations.
Have a look at [1] and go down to where it says " To find out why the garbage collector is running so much".
[1] https://blog.golang.org/profiling-go-programs https://blog.golang.org/profiling-go-programs