[ https://issues.apache.org/jira/browse/SPARK-39928?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean R. Owen reassigned SPARK-39928: ------------------------------------ Assignee: Yang Jie > Optimize Utils.getIteratorSize for Scala 2.13 refer to IterableOnceOps.size > --------------------------------------------------------------------------- > > Key: SPARK-39928 > URL: https://issues.apache.org/jira/browse/SPARK-39928 > Project: Spark > Issue Type: Sub-task > Components: Spark Core > Affects Versions: 3.4.0 > Reporter: Yang Jie > Assignee: Yang Jie > Priority: Minor > > {{Utils.getIteratorSize}} is slightly slower than {{Iterator.size}} when > using Scala 2.13, but it seems that we can't call {{Iterator.size}} directly, > because {{Utils.getIteratorSize}} method returns {{Long}} type data, using > {{Iterator.size}} directly can't ensure that overflow will not occur. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org