Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-10066

Use ByteArrayOutputStream#writeTo where appropriate

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.98.0
    • 0.98.0
    • None
    • None
    • Reviewed

    Description

      We can avoid some unnecessary copies by using ByteArrayOutputStream#writeTo instead of #toByteArray followed by write(). Found this in a few places.

      Attachments

        1. 10066-0.96.patch
          2 kB
          Andrew Kyle Purtell
        2. 10066.patch
          5 kB
          Andrew Kyle Purtell

        Activity

          People

            apurtell Andrew Kyle Purtell
            apurtell Andrew Kyle Purtell
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: