"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "nsqd/buffer_pool.go" between
nsq-1.2.0.tar.gz and nsq-1.2.1.tar.gz

About: nsq is a realtime distributed and and decentralized messaging platform.

buffer_pool.go  (nsq-1.2.0):buffer_pool.go  (nsq-1.2.1)
skipping to change at line 21 skipping to change at line 21
bp.New = func() interface{} { bp.New = func() interface{} {
return &bytes.Buffer{} return &bytes.Buffer{}
} }
} }
func bufferPoolGet() *bytes.Buffer { func bufferPoolGet() *bytes.Buffer {
return bp.Get().(*bytes.Buffer) return bp.Get().(*bytes.Buffer)
} }
func bufferPoolPut(b *bytes.Buffer) { func bufferPoolPut(b *bytes.Buffer) {
b.Reset()
bp.Put(b) bp.Put(b)
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)