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

Consecutive StringBuilder.append can be reused

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: None
    • Labels:
      None

      Description

      Consecutive calls to StringBuffer/StringBuilder .append should be chained, reusing the target object. This can improve the performance by producing a smaller bytecode, reducing overhead and improving inlining.

        Attachments

        1. HADOOP-16029-01.patch
          121 kB
          Ayush Saxena
        2. HADOOP-16029-02.patch
          113 kB
          Ayush Saxena
        3. HADOOP-16029-03.patch
          114 kB
          Ayush Saxena
        4. HADOOP-16029-04.patch
          115 kB
          Ayush Saxena
        5. HADOOP-16029-05.patch
          114 kB
          Ayush Saxena

          Issue Links

            Activity

              People

              • Assignee:
                ayushtkn Ayush Saxena
                Reporter:
                ayushtkn Ayush Saxena
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: