Skip to content

[Feature]: add SignatureCache for checkTx and DeliverTx #15780

Open
@chengzhinei

Description

@chengzhinei

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

image
https://github.com/okex

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions