News for hackers. Stuff that matters.
Re:Go 1.1 performance improvements by vanderZwan on Tuesday May 21, 2013 @07:32AM (#5742958)
Have you updated the benchmarks with Go 1.1? How does it compare to other buffer packages?

http://godoc.org/github.com/cznic/bufs

http://godoc.org/github.com/kotokoko/chihaya/bufferpool

Re:Go 1.1 performance improvements by songgao on Tuesday May 21, 2013 @12:16PM (#5744669)
This one is not exactly "buffer" as shown in the two links. It uses a custom structure data type instead of []byte, to avoid conversion between actual data and []byte (marshaling) or type assertion (conversion from/to interface{}). Check https://github.com/songgao/bufferManager.go/blob/master/buff... , inside Data there can be anything. The internal implementation is closer to `bufferpool` (2nd one) though, since they both use a channel as the pool.

As to performance in GO 1.1, I did try it with this implementation but have not updated result to Github. The speedup is similar. You could simply clone the repo and run `run_test.sh` yourself :-)

Re:Go 1.1 performance improvements by vanderZwan on Tuesday May 21, 2013 @01:51PM (#5745392)
Very clear answer!

Apologies for being lazy and just thinking "ooh, buffer, like the other packages with the name buffer" without digging into the sources, and thanks for answering anyway :)