Slice Recycling Performance and Pitfalls (GothamGo)

Original abstract

When you drink a soda, do you recycle the can? When you allocate a slice, do you recycle the memory? Recycling cans is good for the planet and recycling slices can be good for your program. But how? The garbage collector? A sync.Pool? Something else? You’ll be surprised what a difference it makes!

Sample code



Download PDF

•      •      •

If you enjoyed this or have feedback, please let me know by or