d7d2f14d61
`bitcoind` notifies transactions once they're accepted into the mempool and once they're confirmed in a block. Previously, reading a message from ZMQ would allocate a buffer with the size of the message. This can cause nodes to perform a large number of allocations within a small amount periodically (3000 300B allocations every 10 mins on average), which can cause a lot of GC pressure on lower resourced nodes. To remedy this, we introduce two static buffers, one for blocks and another for transactions, that will be reused for every message read. Each is constrained by its maximum expected size.
36 lines
1.3 KiB
Modula-2
36 lines
1.3 KiB
Modula-2
module github.com/btcsuite/btcwallet
|
|
|
|
require (
|
|
github.com/btcsuite/btcd v0.20.0-beta
|
|
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f
|
|
github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d
|
|
github.com/btcsuite/btcwallet/wallet/txauthor v1.0.0
|
|
github.com/btcsuite/btcwallet/wallet/txrules v1.0.0
|
|
github.com/btcsuite/btcwallet/walletdb v1.0.0
|
|
github.com/btcsuite/btcwallet/wtxmgr v1.0.0
|
|
github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792
|
|
github.com/davecgh/go-spew v1.1.1
|
|
github.com/golang/protobuf v1.2.0
|
|
github.com/jessevdk/go-flags v1.4.0
|
|
github.com/jrick/logrotate v1.0.0
|
|
github.com/kkdai/bstream v0.0.0-20181106074824-b3251f7901ec // indirect
|
|
github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf
|
|
github.com/lightninglabs/neutrino v0.10.0
|
|
golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67
|
|
golang.org/x/net v0.0.0-20190206173232-65e2d4e15006
|
|
google.golang.org/genproto v0.0.0-20190201180003-4b09977fb922 // indirect
|
|
google.golang.org/grpc v1.18.0
|
|
)
|
|
|
|
replace github.com/btcsuite/btcwallet/walletdb => ./walletdb
|
|
|
|
replace github.com/btcsuite/btcwallet/wtxmgr => ./wtxmgr
|
|
|
|
replace github.com/btcsuite/btcwallet/wallet/txauthor => ./wallet/txauthor
|
|
|
|
replace github.com/btcsuite/btcwallet/wallet/txrules => ./wallet/txrules
|
|
|
|
replace github.com/btcsuite/btcwallet/wallet/txsizes => ./wallet/txsizes
|
|
|
|
go 1.13
|