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: rm header lookup in feeHistory #7329

Merged
merged 2 commits into from Mar 25, 2024
Merged

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Mar 25, 2024

by caching the timestamp, we can get rid of the disk lookup,
this increases cache size by 1024 * u64 but is preferable to having a header lookup

@mattsse mattsse requested a review from Rjected as a code owner March 25, 2024 16:58
@mattsse mattsse added C-perf A change motivated by improving speed, memory usage or disk footprint A-rpc Related to the RPC implementation labels Mar 25, 2024
Copy link
Member

@onbjerg onbjerg left a comment

Choose a reason for hiding this comment

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

small nit

crates/rpc/rpc/src/eth/api/fee_history.rs Outdated Show resolved Hide resolved
Co-authored-by: Oliver Nordbjerg <onbjerg@users.noreply.github.com>
@mattsse mattsse added this pull request to the merge queue Mar 25, 2024
Merged via the queue into main with commit 172fd40 Mar 25, 2024
27 checks passed
@mattsse mattsse deleted the matt/perf-rm-header-lookup branch March 25, 2024 17:26
Ruteri pushed a commit to Ruteri/reth that referenced this pull request Apr 17, 2024
Co-authored-by: Oliver Nordbjerg <onbjerg@users.noreply.github.com>
Ruteri pushed a commit to Ruteri/reth that referenced this pull request Apr 17, 2024
Co-authored-by: Oliver Nordbjerg <onbjerg@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rpc Related to the RPC implementation C-perf A change motivated by improving speed, memory usage or disk footprint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants