You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Michael Park (JIRA)" <ji...@apache.org> on 2017/04/04 18:49:42 UTC

[jira] [Comment Edited] (MESOS-4235) JSON generation performance improvement

    [ https://issues.apache.org/jira/browse/MESOS-4235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15955612#comment-15955612 ] 

Michael Park edited comment on MESOS-4235 at 4/4/17 6:49 PM:
-------------------------------------------------------------

There are still follow-up work to be done in regards to migrating rest of the endpoints, but the scope of this ticket has been met. Refer to MESOS-4732


was (Author: mcypark):
There are still follow-up work to be done in regards to migrating rest of the endpoints, but the scope of this ticket has been met.

> JSON generation performance improvement
> ---------------------------------------
>
>                 Key: MESOS-4235
>                 URL: https://issues.apache.org/jira/browse/MESOS-4235
>             Project: Mesos
>          Issue Type: Epic
>          Components: libprocess, master, stout
>            Reporter: Michael Park
>            Assignee: Michael Park
>              Labels: mesosphere, scalability, twitter
>             Fix For: 1.3.0
>
>
> This is an epic which evolved from MESOS-2353. As mentioned in the description of MESOS-2353, most of the work is spent performing memory allocation/deallocation. Some preliminary efforts have been made such as calling {{reserve}} for {{JSON::Array}}. There are still plenty of dynamic allocations being made especially from instances of {{JSON::Object}} which hold a {{std::map}} as a member.
> The current approach being adopted is to introduce a {{jsonify}} function which by-passes these unnecessary dynamic allocations and copying, and to simply hold references to the underlying objects.
> We plan to first introduce the {{jsonify}} function to {{stout}}, and update master's {{state}} endpoint, then proceed to update the rest of the system.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)