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 TxPool lock contention #6411

Closed
wants to merge 2 commits into from
Closed

Conversation

benaadams
Copy link
Member

@benaadams benaadams commented Dec 22, 2023

Changes

  • HashCache, TxBroadcaster, TxDistinctSortedPool, BlobTxDistinctSortedPool are all thread safe collections so an overarching lock isn't required (compare changes ignoring whitespace; mostly indentation changes)

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a change that causes existing functionality not to work as expected)
  • Optimization
  • Refactoring
  • Documentation update
  • Build-related changes
  • Other: Description

Testing

Requires testing

  • Yes
  • No

@LukaszRozmej
Copy link
Member

Not analyzing it yet, but I think that lock potentially was to synchronize changes between multiple of those collections?

@benaadams
Copy link
Member Author

Not analyzing it yet, but I think that lock potentially was to synchronize changes between multiple of those collections?

Is from 2 years ago Berlin upgrade before there were multiple collections; also I think they are either/or; txn is either in blob, regular or local but not in all

@benaadams
Copy link
Member Author

Closing in favour of #6417

@benaadams benaadams closed this Dec 24, 2023
@rubo rubo deleted the reduce-txpool-lock-contention branch December 25, 2023 17:22
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.

2 participants