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

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.1-beta
    • nfs
    • 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.003.patch
          26 kB
          Haohui Mai
        2. HADOOP-9669.002.patch
          24 kB
          Haohui Mai
        3. HADOOP-9669.001.patch
          24 kB
          Haohui Mai
        4. HADOOP-9669.patch
          24 kB
          Haohui Mai

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment