defer overheaddefer overhead What is the overhead of defer? Answer runtime.deferproc and runtime.deferreturn cause context copy and retrieval on stack memory