Details

    • Reviewed

    Description

      This JIRA is plan to add following misc perf improvements:

      1) Use final int in Resources/ResourceCalculator to cache #known-resource-types. (Significant improvement).
      2) Catch Java's ArrayOutOfBound Exception instead of checking array.length every time. (Significant improvement).
      3) Avoid setUnit validation (which is a HashSet lookup) when initialize default Memory/VCores ResourceInformation (Significant improvement).
      4) Avoid unnecessary loop array in Resource#toString/hashCode. (Some improvement).
      5) Removed readOnlyResources in BaseResource. (Minor improvement).
      6) Removed enum: MandatoryResources, use final integer instead. (Minor improvement).

      Attachments

        1. YARN-7136.001.patch
          25 kB
          Wangda Tan
        2. YARN-7136.YARN-3926.001.patch
          25 kB
          Wangda Tan
        3. YARN-7136.YARN-3926.002.patch
          26 kB
          Wangda Tan
        4. YARN-7136.YARN-3926.003.patch
          30 kB
          Wangda Tan
        5. YARN-7136.YARN-3926.004.patch
          32 kB
          Wangda Tan
        6. YARN-7136.YARN-3926.005.patch
          29 kB
          Sunil G
        7. YARN-7136.YARN-3926.006.patch
          31 kB
          Wangda Tan
        8. YARN-7136.YARN-3926.007.patch
          31 kB
          Wangda Tan
        9. YARN-7136.YARN-3926.008.patch
          53 kB
          Wangda Tan
        10. YARN-7136.YARN-3926.009.patch
          54 kB
          Wangda Tan
        11. YARN-7136.YARN-3926.010.patch
          54 kB
          Wangda Tan
        12. YARN-7136.YARN-3926.011.patch
          59 kB
          Wangda Tan
        13. YARN-7136.YARN-3926.012.patch
          59 kB
          Wangda Tan
        14. YARN-7136.YARN-3926.013.patch
          59 kB
          Wangda Tan
        15. YARN-7136.YARN-3926.014.patch
          61 kB
          Sunil G
        16. YARN-7136.YARN-3926.015.patch
          59 kB
          Wangda Tan
        17. YARN-7136.YARN-3926.016.patch
          60 kB
          Wangda Tan
        18. YARN-7136.branch-3.0.001.patch
          59 kB
          Daniel Templeton

        Issue Links

          Activity

            People

              leftnoteasy Wangda Tan
              leftnoteasy Wangda Tan
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: