Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1920 Binary Type
  3. THRIFT-765

Improved string encoding and decoding performance

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 0.2
    • Fix Version/s: 0.4
    • Component/s: Java - Library
    • Labels:
      None

      Description

      One of the most consistent time-consuming spots of Thrift serialization and deserialization is string encoding. For some inscrutable reason, String.getBytes("UTF-8") is slow.

      However, it's recently been brought to my attention that DataOutputStream's writeUTF method has a faster implementation of UTF-8 encoding and decoding. We should use this style of encoding.

        Attachments

        1. thrift-765-redux-v2.patch
          12 kB
          Bryan Duxbury
        2. thrift-765-redux.patch
          11 kB
          Bryan Duxbury
        3. THRIFT-765.patch
          16 kB
          Robert Muir
        4. thrift-765.patch
          9 kB
          Bryan Duxbury

          Issue Links

            Activity

              People

              • Assignee:
                bryanduxbury Bryan Duxbury
                Reporter:
                bryanduxbury Bryan Duxbury
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: