Merge pull request #2923 from filecoin-project/feat/mpool-more-timings

also log chain creation timings
This commit is contained in:
Jakub Sztandera 2020-08-08 16:13:15 +02:00 committed by GitHub
commit 44551124e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,11 +72,13 @@ func (mp *MessagePool) selectMessages(curTs, ts *types.TipSet) ([]*types.SignedM
} }
// 1. Create a list of dependent message chains with maximal gas reward per limit consumed // 1. Create a list of dependent message chains with maximal gas reward per limit consumed
startChains := time.Now()
var chains []*msgChain var chains []*msgChain
for actor, mset := range pending { for actor, mset := range pending {
next := mp.createMessageChains(actor, mset, baseFee, ts) next := mp.createMessageChains(actor, mset, baseFee, ts)
chains = append(chains, next...) chains = append(chains, next...)
} }
log.Infow("create message chains done", "took", time.Since(startChains))
// 2. Sort the chains // 2. Sort the chains
sort.Slice(chains, func(i, j int) bool { sort.Slice(chains, func(i, j int) bool {