Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
chore: Single buffer block sync #1318
chore: Single buffer block sync #1318
Changes from all commits
26906b6
9ace98a
8baf652
5f3fb57
3b349ef
1982867
18453ba
4d37567
a35e94a
7587ce2
a5a3b82
4970937
a9a0acb
55180f7
e4ac401
353faf2
3dfebe1
ce9bd5f
1ae5b9f
5a99b6e
19b973a
86a5d01
7657b0b
3ef35e3
4713f16
a15b008
1e0770b
09b0054
ec8c01d
49a645b
30739e7
85d7425
6520896
f98c9ce
76ca407
94598de
b89db7d
2f5a3f8
fb6ce66
672012f
eb32da9
9533cc6
0136cc8
769bf6e
51f74d2
f2a37b4
76361cb
0cbcaa1
778077a
11357e6
6838932
8473229
8fdd12d
4eb5b51
574e993
2429ee0
e355042
1f9c36e
425bb8c
839725a
ab86da7
5d9966e
6616d86
4c327d9
1af52db
a046d6d
f137f62
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Hmm, I thought it was a good idea to spawn a task here too, but after some benchmarking, it seems to have a super small effect.
Did I get right that we potentially have only
params.max_get_txns_requests
ofget_headers_batch
requests?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.
Yes, this PR ends up removing
max_header_batch_requests
entirely.I think we may want to try different benchmark configurations. Before batch headers, we saw some performance improvement of a few percentage points under certain circumstance with this approach. It would be worth trying different configurations of sizes and delays.
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 think this is probably better, since it's much harder to model this with multiple buffer parameters.
I suggest we change the name of
max_get_txns_requests
toblock_stream_buffer_size
or something more explicit, and directly related. I thinkget_transactions
should be renamedget_block_stream
too, since the return type isSealedBlock
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.
Yep, good suggestions - the naming somehow got away from me here, and deserves some TLC.