Branch: refs/heads/master
Home: https://github.com/conformal/btcd
Commit: 3946d848877c9ffce167683cb6f67c780fca7ee9
https://github.com/conformal/btcd/commit/3946d848877c9ffce167683cb6f67c780fca7ee9
Author: Dave Collins <[email protected]>
Date: 2014-01-08 (Wed, 08 Jan 2014)
Changed paths:
M blockmanager.go
M peer.go
Log Message:
-----------
Make use of the new size hint functions in btcwire.
This commit changes a couple of sections which deal with large lists of
inventory vectors to use the new size hint functions recently added to
btcwire. This allows a bit more efficiency since the size of the list is
known up front and we can therefore avoid dynamically growing the backing
array several times. This also helps avoid a Go bug that leaks memory on
appends and GC churn.