LuciferYang opened a new pull request, #37339:
URL: https://github.com/apache/spark/pull/37339

   ### What changes were proposed in this pull request?
   This pr add a micro-benchmark for `o.a.spark.util.Utils#getIteratorSize` 
method.
   
   
   ### Why are the changes needed?
   `Utils#getIteratorSize` method was added due to 
`scala.collection.Iterator#size` uses a for loop and it is slightly slower in 
the current version of Scala.
   
     When adding this method, Spark uses Scala 2.10. Currently, Spark use Scala 
2.12. this pr add introduce `IteratorSizeBenchmark` to ensure that the 
conclusion is still correct when upgrading the major version of Scala, 
otherwise we should use `Iterator#size` directly.
   
   
   ### Does this PR introduce _any_ user-facing change?
   No, just for test 
   
   
   ### How was this patch tested?
   Pass GitHub Actions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to