For objects that are frequently created, used briefly, and thrown away, should utilize a mechanism for recycling these objects. Go 1.3 may introduce a type called sync.Pool which provides a convenient means of recycling objects. See [1] for a description.
For objects that are frequently created, used briefly, and thrown away, should utilize a mechanism for recycling these objects. Go 1.3 may introduce a type called sync.Pool which provides a convenient means of recycling objects. See [1] for a description.
[1] http://talks.golang.org/2014/go1.3.slide#9