Open
Description
Summary
Problem Definition
For a TX, when it is called through abci to deliverTx and checkTx, verification of the signature is used. However, it was found through pprof that the performance overhead of verifying the signature is still significant.
To save performance, the result of verifying the signature for the same TX can be cached during the first verification. This way, when the signature is needed for verification again, no decrypting and encrypting operations need to be performed, thereby saving performance.
Proposal
The code change is relatively simple, and this Pull-Request can be used as a reference.
https://github.com/cosmos/cosmos-sdk/pull/15778/files