Github user dbtsai commented on the pull request: https://github.com/apache/spark/pull/6137#issuecomment-101879949 @zsxwing We did benchmark in this PR, and actually the performance is different in the tight loop. JVM just doesn't know if the size will be constant. Also, having local copy of reference of array will boost performance dramatically. https://github.com/apache/spark/commit/bf1a6aaac577757a293a573fe8eae9669697310a
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org