Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-4566

Avoid unnecessary temporary `std::string` constructions and copies in `jsonify`.

    XMLWordPrintableJSON

Details

    • Mesosphere Sprint 27
    • 1

    Description

      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. We print double 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.

      Attachments

        Activity

          People

            mcypark Michael Park
            mcypark Michael Park
            Joris Van Remoortere Joris Van Remoortere
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: