-
Notifications
You must be signed in to change notification settings - Fork 107
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
try to do deserialization of transaction in a rayon thread #4801
Conversation
This code fails compilation with the following:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found a way to make it work, I pushed it to this PR in commit 4715696.
Some of the tests will need to be changed to use the multi-threaded tokio
runtime, here's an example:
zebra/zebra-network/src/isolated/tor/tests/vectors.rs
Lines 44 to 45 in 9be13a4
#[tokio::test(flavor = "multi_thread")] | |
async fn connect_isolated_run_tor_multi() { |
Codecov Report
@@ Coverage Diff @@
## main #4801 +/- ##
==========================================
+ Coverage 78.75% 78.83% +0.07%
==========================================
Files 305 305
Lines 38066 38109 +43
==========================================
+ Hits 29980 30044 +64
+ Misses 8086 8065 -21 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good!
I admin-merged this PR because it is an urgent sync fix. |
Motivation
We want to add the deserialization of transactions and blocks in the zebra-network crate into the rayon pool. Resolves #4787
Solution
Implement deserialize transactions and blocks in a rayon thread.
Review