Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-48391

use addAll instead of add function in TaskMetrics to accelerate

    XMLWordPrintableJSON

Details

    Description

      In the fromAccumulators method of TaskMetrics,we should use `
      tm._externalAccums.addAll` instead of `tm._externalAccums.add`, as _externalAccums is a instance of CopyOnWriteArrayList

      Attachments

        Issue Links

          Activity

            People

              lijiahong jiahong.li
              lijiahong jiahong.li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: