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

Improved string encoding and decoding performance

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 0.2
    • 0.4
    • Java - Library
    • 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.patch
          16 kB
          Robert Muir
        2. thrift-765-redux-v2.patch
          12 kB
          Bryan Duxbury
        3. thrift-765-redux.patch
          11 kB
          Bryan Duxbury
        4. thrift-765.patch
          9 kB
          Bryan Duxbury

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: