Repository: mesos Updated Branches: refs/heads/1.5.x 1d91edcc3 -> 4b8fd0b13
Used jsonify in http serialization for better performance. This change avoids building an in-memory JSON::Object in favor of using jsonify to directly output the serialized JSON from the protobuf. Review: https://reviews.apache.org/r/65063/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/1257e97c Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/1257e97c Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/1257e97c Branch: refs/heads/1.5.x Commit: 1257e97c5d8bf5f827e1a335fe031b4e96d3ae32 Parents: 1d91edc Author: Meng Zhu <[email protected]> Authored: Tue Jan 16 17:08:05 2018 -0800 Committer: Benjamin Mahler <[email protected]> Committed: Wed Jan 17 11:12:38 2018 -0800 ---------------------------------------------------------------------- src/common/http.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/1257e97c/src/common/http.cpp ---------------------------------------------------------------------- diff --git a/src/common/http.cpp b/src/common/http.cpp index 3ada1f0..728fc55 100644 --- a/src/common/http.cpp +++ b/src/common/http.cpp @@ -114,7 +114,7 @@ string serialize( return message.SerializeAsString(); } case ContentType::JSON: { - return stringify(JSON::protobuf(message)); + return jsonify(JSON::Protobuf(message)); } case ContentType::RECORDIO: { LOG(FATAL) << "Serializing a RecordIO stream is not supported";
