From 95f84f10c8575e3d8ea6a73e2b548a58a9ffb7c4 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Wed, 21 Nov 2018 16:14:51 +0800 Subject: core: add global signature cache and improve concurrency (#42) From the go trace result, the bottleneck hides in the lock of StoreTxCache. To improve this, we update the cache in a batched fassion. --- core/tx_pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/tx_pool.go') diff --git a/core/tx_pool.go b/core/tx_pool.go index cfec195c8..703d75e75 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -946,7 +946,7 @@ func (pool *TxPool) removeTx(hash common.Hash, outofbound bool) { } } - types.DeleteTxCacheByHash(hash) + types.GlobalSigCache.Prune([]common.Hash{hash}) } // promoteExecutables moves transactions that have become processable from the -- cgit v1.2.3