Alexey Serbin has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/22798


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]>
(cherry picked from commit 887a87dd9c6cfc29999e0eb9c55e559cdeefe59f)
---
M src/kudu/server/webserver.cc
1 file changed, 10 insertions(+), 8 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/98/22798/1
--
To view, visit http://gerrit.cloudera.org:8080/22798
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: branch-1.18.x
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4085ab8150ecd04972d9eac8633226845b365830
Gerrit-Change-Number: 22798
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <[email protected]>

Reply via email to