Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-48391][CORE] Using addAll instead of add function in fromAccum…
…ulatorInfos method of TaskMetrics Class ### What changes were proposed in this pull request? Using addAll instead of add function in fromAccumulators method of TaskMetrics. ### Why are the changes needed? To Improve performance. In the fromAccumulators method of TaskMetrics,we should use ` tm._externalAccums.addAll` instead of `tm._externalAccums.add`, as _externalAccums is a instance of CopyOnWriteArrayList ### Does this PR introduce _any_ user-facing change? yes. ### How was this patch tested? No Tests. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#46705 from monkeyboy123/fromAccumulators-accelerate. Authored-by: Dereck Li <monkeyboy.ljh@gmail.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com>
- Loading branch information