FAQ

- with sync.Pool, buffer can be garbage collected even if there are stored
into sync.Pool (kind of java.lang.ref.WeakReference)
The pool will be cleared during garbage collection, it is not a cache. This
also mitigates your previous point, putting too many things into a pool
will cause a garbage collection cycle, which will empty the pool.

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 6 of 8 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedOct 18, '15 at 2:54p
activeOct 20, '15 at 7:53a
posts8
users4
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase