MENU

Fun & Interesting

justforfunc #37: sync.Pool from the pool

justforfunc: Programming in Go 17,991 lượt xem 6 years ago
Video Not Working? Fix It Now

It's summer and I love hanging out by the pool ...
so it's just logic that I would make an episode about sync.Pool!

In this episode we learn how to measure how many memory allocations a program is performing and how to reduce them thanks to sync.Pool, as well as how to identify which piece of your code is
allocating the memory thanks to pprof.

source code: https://github.com/campoy/justforfunc/tree/master/37-sync-pool

Comment