Skip to content

Improve the efficiency of signature verification #5386

@lurais

Description

@lurais

Rationale

At present, there is a signature verification process in the transaction verification process. In order to improve the efficiency of signature verification, multiple transactions are currently verified in parallel. The number of CPU cores used in the parallel verification process is set to half of the current CPU core number. From the figure below, this setting is conservative and wastes node performance.

Here is the cpu usege stats and the transaction verification time cost. And it doesn't use too much CPU resource from the image while the average time of signature verification process may be more than 30ms.

System information
cpu:8 cores
memory: 16G
java-tron version: 4.7.2

Verify slon CPU

And here is the cpu usage stats in the last two days, it used no more than 18% of the cpu resource.
CPU

Why should this feature exist?
To improve the efficiency of signature verification.

Implementation

Therefore, I propose to use all the cores in signature verification process to leverage the system performance and improve the efficiency of signature verification.

Are you willing to implement this feature?
yes

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions