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?
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 :)
Not a precise GC, but will be really helpful in some scenarios.