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

perf: Use Caching in Priority Nonce Mempool for Tx Look ups #520

Merged
merged 5 commits into from
Jun 18, 2024

Conversation

davidterpay
Copy link
Contributor

Before Optimization:
Screenshot 2024-06-18 at 4 39 30 PM

After Optimization:
Screenshot 2024-06-18 at 4 39 54 PM

Copy link

codecov bot commented Jun 18, 2024

Codecov Report

Attention: Patch coverage is 7.14286% with 13 lines in your changes missing coverage. Please review.

Project coverage is 52.07%. Comparing base (2ae5b14) to head (8098fb4).

Files Patch % Lines
block/base/priority_nonce.go 0.00% 11 Missing ⚠️
block/base/mempool.go 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #520      +/-   ##
==========================================
- Coverage   52.12%   52.07%   -0.05%     
==========================================
  Files          48       48              
  Lines        1861     1855       -6     
==========================================
- Hits          970      966       -4     
+ Misses        799      798       -1     
+ Partials       92       91       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@davidterpay davidterpay added backport/v1.x.x Backport your PR to the v1.x.x release backport/v2.x.x Backport your PR to the v2.x.x release labels Jun 18, 2024
@davidterpay davidterpay changed the title perf: Use Caching in Priority Nonce Mempool for Tx Look ups ![](obsidian://open?vault=Obsidian%20Vault&file=Screenshot%202024-06-18%20at%203.09.50%20PM.png) perf: Use Caching in Priority Nonce Mempool for Tx Look ups Jun 18, 2024
@davidterpay davidterpay merged commit 3376dd3 into main Jun 18, 2024
10 of 13 checks passed
@davidterpay davidterpay deleted the terpay/cointains-caching branch June 18, 2024 23:45
mergify bot pushed a commit that referenced this pull request Jun 18, 2024
* benchmark contains

* use sender/nonce when caching

* nit

* nits

* nit

(cherry picked from commit 3376dd3)

# Conflicts:
#	block/base/mempool.go
#	block/base/mempool_test.go
mergify bot pushed a commit that referenced this pull request Jun 18, 2024
* benchmark contains

* use sender/nonce when caching

* nit

* nits

* nit

(cherry picked from commit 3376dd3)

# Conflicts:
#	block/base/mempool_test.go
Eric-Warehime pushed a commit that referenced this pull request Jun 19, 2024
…520) (#523)

* perf: Use Caching in Priority Nonce Mempool for Tx Look ups (#520)

* benchmark contains

* use sender/nonce when caching

* nit

* nits

* nit

(cherry picked from commit 3376dd3)

# Conflicts:
#	block/base/mempool.go
#	block/base/mempool_test.go

* nit

---------

Co-authored-by: David Terpay <[email protected]>
Co-authored-by: David Terpay <[email protected]>
@ValarDragon
Copy link
Contributor

Shouldn't this use the signature as well for guaranteed uniqueness?

davidterpay added a commit that referenced this pull request Jun 19, 2024
…520) (#524)

* perf: Use Caching in Priority Nonce Mempool for Tx Look ups (#520)

* benchmark contains

* use sender/nonce when caching

* nit

* nits

* nit

(cherry picked from commit 3376dd3)

# Conflicts:
#	block/base/mempool_test.go

* nit

---------

Co-authored-by: David Terpay <[email protected]>
Co-authored-by: David Terpay <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/v1.x.x Backport your PR to the v1.x.x release backport/v2.x.x Backport your PR to the v2.x.x release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants