4 ms·
How is that cheating? That's just how you program without allocations.
by adrusi 12y ago
How is that cheating? That's just how you program without allocations.
- tlb 12y agoPool 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.