Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-7228

ChecksumByteBufferImpl.update() is expensive

    XMLWordPrintableJSON

Details

    Description

      ChecksumByteBufferImpl.update() involves memory copy.
      It looks like the memory copy is redundant, and checksum should be able to compute directly.

      I have a hack to force it to skip the memory copy so I'll post it as a demo.

      Attachments

        1. Screen Shot 2022-08-22 at 7.04.42 PM.png
          191 kB
          Wei-Chiu Chuang
        2. before.png
          75 kB
          Kirill Sizov
        3. after.png
          75 kB
          Kirill Sizov

        Activity

          People

            weichiu Wei-Chiu Chuang
            weichiu Wei-Chiu Chuang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: