3 ms·
Pool allocations are still allocations. If you look at the implementation for Pool.get, it works a lot like malloc: http://golang.org/src/sync/pool.go http://g
by tlb 12y ago
Pool allocations are still allocations. If you look at the implementation for Pool.get, it works a lot like malloc:
http://golang.org/src/sync/pool.go http://golang.org/src/sync/pool.go
I've programmed without pools or allocations, where everything had statically allocated storage. Both for microcontroller firmware, and telephony software. It's noticeably harder.