Explore Go sync.Pool as Cache
Details about sync.Pool and ideas about using it efficiently
I was hit on the head by an “apple” when I was busy working in the JSON third-party library orchard.
sync.Poolis used by so many libs as a cache to improve performance, for example,
go-json stores a
sync.Pool in case reuse is needed when decoding JSON. Why don’t I apply…