Alexey Serbin has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/22796 )

Change subject: [webserver] reduce memory allocations and copying for responses
......................................................................

[webserver] reduce memory allocations and copying for responses

This patch optimizes handling the WebResponse::response field, swapping
the underlying rdbuf in ostringstream instead of materializing it
as std::string and copying over the data from one stream to another.

There are no functional modifications in this changelist.

Change-Id: I4085ab8150ecd04972d9eac8633226845b365830
Reviewed-on: http://gerrit.cloudera.org:8080/22796
Reviewed-by: Yifan Zhang <[email protected]>
Reviewed-by: Abhishek Chennaka <[email protected]>
Tested-by: Alexey Serbin <[email protected]>
---
M src/kudu/server/webserver.cc
1 file changed, 10 insertions(+), 8 deletions(-)

Approvals:
  Yifan Zhang: Looks good to me, approved
  Abhishek Chennaka: Looks good to me, approved
  Alexey Serbin: Verified

--
To view, visit http://gerrit.cloudera.org:8080/22796
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I4085ab8150ecd04972d9eac8633226845b365830
Gerrit-Change-Number: 22796
Gerrit-PatchSet: 3
Gerrit-Owner: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Abhishek Chennaka <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <[email protected]>

Reply via email to