thejerf/gomempool
View on GitHub ↗ ★ 44 Go
A []byte pool for Go.
4 mentions on Hacker News by 2 people: 0 stories, 4 comments · first 2014-01-08 · latest 2025-04-01
20082026
-
Long before sync.Pool was a thing, I wrote a pool for []bytes: https://github.com/thejerf/gomempool I haven't taken it down because it isn't obsoleted by sync.Pool because the pool is aware of the size of the []bytes. Though it may be…
comment by jerf · 2025-04-01 · in Go Optimization Guide -
…I wrote something myself that hits a similar problem, but in a completely different dimension: https://github.com/thejerf/gomempool My problem was that I had an otherwise rather placid program (from an allocation perspective) that liked to…
comment by jerf · 2015-11-30 · in Show HN: Mmm – manual memory management for Go -
…I couldn't resist the first time in my career in which I could justify some bit bashing: https://github.com/thejerf/gomempool/blob/master/pool.go#L39... :)
comment by jerf · 2014-01-08 · in Another go at Go failed -
…mempool project on github.[1] Still pretty early though, I don't think it can do dynamic sizes? [1] https://github.com/thejerf/gomempool
comment by yelnatz · 2014-01-08 · in Another go at Go failed