Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reduce spike between get_payload and new_payload #7

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

claymega
Copy link
Collaborator

As TPS increases, the time-consuming spikes of interval3_between_get_payload_and_new_payload in the sequence logic will increase. As shown in the following figure:
image

After debugging, it was found that the try-update-engine in the derived logic was executed before the new_payload function handler was executed.

The purpose is to reduce the number of try-update-engine calls. The try-update-engine event is triggered in four places, and the effects of the triggering are the same. Each block generation will trigger the try-update-engine event, so directly deleting try-update-engine in the derived logic will not have any effect.

The same TPS spikes after modification are as follows:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant