[FEA] [Audit] potential performance improvement in Scala 2.13: Replace explicit ArrayOps#toSeq with s.c.immutable.ArraySeq.unsafeWrapArray #11839
Labels
audit_4.0.0
Audit related tasks for 4.0.0
feature request
New feature or request
performance
A performance related task/issue
Is your feature request related to a problem? Please describe.
Scala 2.13 changed the behavior for the
toSeq
API, it does with collection copy.Scala 2.12 does not copy for
toSeq
.So Apache Spark posted a commit (apache/spark@8a4890ddb55) : Replace explicit ArrayOps#toSeq with s.c.immutable.ArraySeq.unsafeWrapArray.
This commit has potential benefits for performance for Scala 2.13.
We should do the similar change as Spark did.
Refer to Spark code:
Describe the solution you'd like
Maybe:
toSeq
toSeq
totoImmutableArraySeq
The text was updated successfully, but these errors were encountered: