nlfiedler / bakeneko

Scheme R7RS interpreter in Go
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Recycle frequently created objects (e.g. environment) #50

Open nlfiedler opened 10 years ago

nlfiedler commented 10 years ago

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