Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9669

Reduce the number of byte array creations and copies in XDR data manipulation

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.1-beta
    • Component/s: nfs
    • Labels:
      None

      Description

      XDR.writeXxx(..) methods ultimately use the static XDR.append(..) for writing each data type. The static append creates a new array and copy data. Therefore, for a singe reply such as RpcAcceptedReply.voidReply(..), there are multiple array creations and array copies. For example, there are at least 6 array creations and array copies for RpcAcceptedReply.voidReply(..).

        Attachments

        1. HADOOP-9669.patch
          24 kB
          Haohui Mai
        2. HADOOP-9669.001.patch
          24 kB
          Haohui Mai
        3. HADOOP-9669.002.patch
          24 kB
          Haohui Mai
        4. HADOOP-9669.003.patch
          26 kB
          Haohui Mai

          Issue Links

            Activity

              People

              • Assignee:
                wheat9 Haohui Mai
                Reporter:
                szetszwo Tsz-wo Sze
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: