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 2016/01/31 01:05:39 UTC

[jira] [Created] (MESOS-4566) Avoid unnecessary temporary `std::string` constructions and copies in `jsonify`.

Michael Park created MESOS-4566:
-----------------------------------

             Summary: Avoid unnecessary temporary `std::string` constructions and copies in `jsonify`.
                 Key: MESOS-4566
                 URL: https://issues.apache.org/jira/browse/MESOS-4566
             Project: Mesos
          Issue Type: Improvement
          Components: stout
            Reporter: Michael Park
            Assignee: Michael Park


A few of the critical code paths in {{jsonify}} involve unnecessary temporary string construction and copies (inherited from the {{JSON::*}}). For example, {{strings::trim}} is used to remove trailing 0s from printing {{double}}s. We print {{double}}s a lot, and therefore constructing a temporary {{std::string}} on printing of every double is extremely costly. This ticket captures the work involved in avoiding them.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)