-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
feature: support batch message parallel processing #4642
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #4642 +/- ##
=============================================
- Coverage 48.66% 48.43% -0.24%
+ Complexity 4070 4048 -22
=============================================
Files 736 736
Lines 25643 25671 +28
Branches 3163 3167 +4
=============================================
- Hits 12480 12434 -46
- Misses 11825 11899 +74
Partials 1338 1338
|
for (int i = 0; i < results.length; i++) { | ||
final AbstractMessage subMessage = ((MergedWarpMessage) message).msgs.get(i); | ||
results[i] = transactionMessageHandler.onRequest(subMessage, rpcContext); | ||
List<AbstractResultMessage> results = new CopyOnWriteArrayList<>(); |
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.
add feature switch and the default value is false.
for (int i = 0; i < results.length; i++) { | ||
final AbstractMessage subMessage = ((MergedWarpMessage) message).msgs.get(i); | ||
results[i] = transactionMessageHandler.onRequest(subMessage, rpcContext); | ||
List<AbstractResultMessage> results = new CopyOnWriteArrayList<>(); |
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.
add feature switch and the default value is false.
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.
LGTM
Ⅰ. Describe what this PR did
support batch message parallel processing