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

refactor(mempool): relaxed locking of mempool #737

Merged
merged 5 commits into from
Mar 6, 2024

Conversation

lklimek
Copy link
Collaborator

@lklimek lklimek commented Feb 12, 2024

Issue being fixed or feature implemented

When processing large mempool, Tenderdash spends quite long time waiting on mempool locks.

Some places where this can be optmized:

  • addNewTransaction

This has significant impact on performance.

What was done?

Refactored locking in addNewTransaction.

How Has This Been Tested?

Locally with e2e tests.

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Feb 23, 2024
@github-actions github-actions bot closed this Feb 27, 2024
@lklimek lklimek reopened this Mar 5, 2024
@lklimek lklimek removed the Stale label Mar 5, 2024
@lklimek lklimek enabled auto-merge (squash) March 6, 2024 09:21
Copy link
Member

@shumkov shumkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@lklimek lklimek merged commit 0872595 into v0.14-dev Mar 6, 2024
15 checks passed
@lklimek lklimek deleted the feat/relaxed-mempool-locking branch March 13, 2024 14:17
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.

None yet

2 participants