3 ms·
Presumably if the buffer is pre-allocated and there are no other variables in play, the Go garbage collector wouldn't get executed often if at all.
by throwaway2016a 9y ago
Presumably if the buffer is pre-allocated and there are no other variables in play, the Go garbage collector wouldn't get executed often if at all.
- stmw 9y agoUnfortunately, "presumably" is not good enough for systems programming - you have no idea when it might run, and you might end up with a lot of environment variables attempting to tame its behavior - like the JDK has.