You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2018/01/17 19:16:32 UTC

[1/2] mesos git commit: Used jsonify in http serialization for better performance.

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 <mz...@mesosphere.io>
Authored: Tue Jan 16 17:08:05 2018 -0800
Committer: Benjamin Mahler <bm...@apache.org>
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";


[2/2] mesos git commit: Added the v1 operator API performance improvements to the CHANGELOG.

Posted by bm...@apache.org.
Added the v1 operator API performance improvements to the CHANGELOG.


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/4b8fd0b1
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/4b8fd0b1
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/4b8fd0b1

Branch: refs/heads/1.5.x
Commit: 4b8fd0b138c373847510650180f19f806595d20d
Parents: 1257e97
Author: Benjamin Mahler <bm...@apache.org>
Authored: Wed Jan 17 11:15:19 2018 -0800
Committer: Benjamin Mahler <bm...@apache.org>
Committed: Wed Jan 17 11:16:23 2018 -0800

----------------------------------------------------------------------
 CHANGELOG | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/4b8fd0b1/CHANGELOG
----------------------------------------------------------------------
diff --git a/CHANGELOG b/CHANGELOG
index f57dda0..9a8f3ca 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -58,7 +58,9 @@ Changes to Dependencies:
 Unresolved Critical Issues:
 
 Feature Graduations:
-  * v1 Operator API is now considered stable.
+  * v1 Operator API is now considered stable. The performance has been
+    improved so that when using protobuf it is faster than v0, and when
+    using JSON it is slightly slower than v0.
 
 All Experimental Features: