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

fix: concurrent ipc driver impl #3790

Merged
merged 1 commit into from
Jul 15, 2023
Merged

fix: concurrent ipc driver impl #3790

merged 1 commit into from
Jul 15, 2023

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Jul 15, 2023

closes #3784

handle reads, calls and writes concurrently

@mattsse mattsse added C-perf A change motivated by improving speed, memory usage or disk footprint A-rpc Related to the RPC implementation labels Jul 15, 2023
@mattsse mattsse force-pushed the matt/concurrent-ipc-driver branch from 9c4a5b8 to d80e730 Compare July 15, 2023 10:22
@codecov
Copy link

codecov bot commented Jul 15, 2023

Codecov Report

Merging #3790 (d80e730) into main (c1b1eac) will increase coverage by 0.06%.
The diff coverage is 82.92%.

Impacted file tree graph

Impacted Files Coverage Δ
crates/rpc/ipc/src/server/connection.rs 74.35% <78.78%> (-3.42%) ⬇️
crates/rpc/ipc/src/server/mod.rs 77.50% <100.00%> (-0.14%) ⬇️

... and 9 files with indirect coverage changes

Flag Coverage Δ
integration-tests 15.79% <0.00%> (+0.02%) ⬆️
unit-tests 64.34% <82.92%> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
reth binary 26.05% <ø> (ø)
blockchain tree 83.02% <ø> (ø)
pipeline 87.13% <ø> (ø)
storage (db) 74.22% <ø> (+0.02%) ⬆️
trie 94.65% <ø> (ø)
txpool 49.97% <ø> (+1.20%) ⬆️
networking 77.66% <ø> (-0.02%) ⬇️
rpc 58.59% <82.92%> (+0.02%) ⬆️
consensus 64.96% <ø> (ø)
revm 33.76% <ø> (ø)
payload builder 6.61% <ø> (ø)
primitives 88.30% <ø> (-0.01%) ⬇️

Copy link
Member

@gakonst gakonst left a comment

Choose a reason for hiding this comment

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

let's get this to snoopy/rabbit for testing

}
}

impl<T, S> Future for IpcConnDriver<T, S, S::Future>
Copy link
Member

Choose a reason for hiding this comment

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

I've seen you write this pattern so many times at this point...do we have any great blogpost which explains this? would be valuable to point contributors towards

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

do we have any great blogpost

not really, it is mostly dependent on the specific use case, and how the data flows here

@mattsse mattsse added this pull request to the merge queue Jul 15, 2023
Merged via the queue into main with commit da13ef6 Jul 15, 2023
@mattsse mattsse deleted the matt/concurrent-ipc-driver branch July 15, 2023 15:06
merklefruit pushed a commit to anton-rs/op-reth that referenced this pull request Jul 18, 2023
merklefruit pushed a commit to merklefruit/op-reth-old that referenced this pull request Jul 26, 2023
merklefruit pushed a commit to anton-rs/op-reth that referenced this pull request Jul 27, 2023
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.

Handle ipc requests concurrently
2 participants