Impala Public Jenkins has submitted this change and it was merged. Change subject: KUDU-1865: Avoid heap allocation for payload slices ......................................................................
KUDU-1865: Avoid heap allocation for payload slices As shown in KUDU-1865, the heap allocation for the temporary vector for the slices for holding the serialized payload is introducing measurable overhead under heavy load. This change replaces the heap allocation with a stack allocation of an array of size TransferLimits::kMaxPayloadSlices. With this change, we saw 10%~15% improvement under heavy workload. Change-Id: I4470d34ba48db5edaeb66d9e739e0c8942004d86 Reviewed-on: http://gerrit.cloudera.org:8080/7471 Tested-by: Kudu Jenkins Reviewed-by: Todd Lipcon <[email protected]> Reviewed-on: http://gerrit.cloudera.org:8080/7744 Reviewed-by: Dan Hecht <[email protected]> Tested-by: Impala Public Jenkins --- M be/src/kudu/rpc/connection.cc M be/src/kudu/rpc/connection.h M be/src/kudu/rpc/inbound_call.cc M be/src/kudu/rpc/inbound_call.h M be/src/kudu/rpc/outbound_call.cc M be/src/kudu/rpc/outbound_call.h M be/src/kudu/rpc/transfer.cc M be/src/kudu/rpc/transfer.h 8 files changed, 59 insertions(+), 48 deletions(-) Approvals: Impala Public Jenkins: Verified Dan Hecht: Looks good to me, approved -- To view, visit http://gerrit.cloudera.org:8080/7744 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: merged Gerrit-Change-Id: I4470d34ba48db5edaeb66d9e739e0c8942004d86 Gerrit-PatchSet: 2 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Michael Ho <[email protected]> Gerrit-Reviewer: Dan Hecht <[email protected]> Gerrit-Reviewer: Impala Public Jenkins Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Michael Ho <[email protected]> Gerrit-Reviewer: Sailesh Mukil <[email protected]> Gerrit-Reviewer: Todd Lipcon <[email protected]>
