Optimizing Go Performance: implementing a threadsafe Object Pool

Introduction Sometimes, for reasons of efficiency, it can be quite handy to keep a pool, that is non-empty set, of initialized objects ready. This can be the case in for instance when you have database connections, which are expensive to…














