Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information