Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-9287

Consecutive StringBuilder append should be reused

    XMLWordPrintableJSON

    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. YARN-9287-01.patch
          135 kB
          Ayush Saxena
        2. YARN-9287-02.patch
          135 kB
          Ayush Saxena
        3. YARN-9287-03.patch
          141 kB
          Ayush Saxena
        4. YARN-9287-04.patch
          141 kB
          Ayush Saxena
        5. YARN-9287-05.patch
          141 kB
          Ayush Saxena
        6. YARN-9287-05.patch
          141 kB
          Ayush Saxena
        7. YARN-9287-06.patch
          134 kB
          Ayush Saxena

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: