Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2021

Improve large binary protocol string performance

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9
    • 0.10.0
    • C++ - Library
    • None
    • Patch Available

    Description

      Currently, TBinaryProtocol reads into a temporary buffer, then copies the results into the resulting std::string. For large strings (like a megabyte), the copy can be a performance issue.

      The attached patch reads directly into the std::string instead.

      Attachments

        1. fast_binary_strings.patch
          1.0 kB
          Ben Craig

        Activity

          People

            ben.craig Ben Craig
            ben.craig Ben Craig
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: