Branch: refs/heads/master
Home: https://github.com/btcsuite/btcd
Commit: 05e51ea2de4c80c7d65e6a401e25c0cebe2035f2
https://github.com/btcsuite/btcd/commit/05e51ea2de4c80c7d65e6a401e25c0cebe2035f2
Author: Josh Rickmar <[email protected]>
Date: 2015-02-06 (Fri, 06 Feb 2015)
Changed paths:
M blockchain/txlookup.go
Log Message:
-----------
Make profiling easier to follow with static dispatch.
For example, when performing a heap profile, this:
. . 125: fetchFunc := db.FetchUnSpentTxByShaList
. . 126: if includeSpent {
. . 127: fetchFunc = db.FetchTxByShaList
. . 128: }
. 9.11MB 129: txReplyList := fetchFunc(txList)
Now becomes this:
. . 125: var txReplyList []*database.TxListReply
. . 126: if includeSpent {
. . 127: txReplyList = db.FetchTxByShaList(txList)
. . 128: } else {
. 8.75MB 129: txReplyList =
db.FetchUnSpentTxByShaList(txList)
. . 130: }
And it's clear where the majority of our allocations are coming from.
Commit: 1bd0516801a92d062b1efe5a81b3db34f1cacd57
https://github.com/btcsuite/btcd/commit/1bd0516801a92d062b1efe5a81b3db34f1cacd57
Author: Dave Collins <[email protected]>
Date: 2015-02-06 (Fri, 06 Feb 2015)
Changed paths:
M blockchain/txlookup.go
Log Message:
-----------
Merge branch 'jrick_static_call' of https://github.com/jrick/btcd into
jrick-jrick_static_call
Compare: https://github.com/btcsuite/btcd/compare/2713c8528d1b...1bd0516801a9