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

Consecutive StringBuilder.append can be reused

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • None
    • 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-05.patch
          114 kB
          Ayush Saxena
        2. HADOOP-16029-04.patch
          115 kB
          Ayush Saxena
        3. HADOOP-16029-03.patch
          114 kB
          Ayush Saxena
        4. HADOOP-16029-02.patch
          113 kB
          Ayush Saxena
        5. HADOOP-16029-01.patch
          121 kB
          Ayush Saxena

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: